forked from bitcoin/bitcoin
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bench: don't return 1 in have_flag() if argc = 1
This makes the semantic of have_flag more clear and fixes a bug that was introduced in 2fe1b50 Add ecmult_gen, ecmult_const and ecmult to benchmark where the behavior introduced by this commit was already assumed. If bench_ecmult was called without arguments, have_flag("simple") returned 1 and no scratch space was allocated which led to very wrong output.
- Loading branch information
Showing
2 changed files
with
31 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters