diff options
| author | Jon Atack <[email protected]> | 2020-07-18 20:27:56 +0200 |
|---|---|---|
| committer | Jon Atack <[email protected]> | 2020-07-22 05:27:13 +0200 |
| commit | c0f09c2c9deaec4cfb35ea587363e6301dd17b88 (patch) | |
| tree | b8eef39fd4f47828315d928c78b7956ef7cc40e4 /src/test/fuzz/scriptnum_ops.cpp | |
| parent | Merge #19143: tests: Add fuzzing harnesses for CAutoFile, CBufferedFile, Load... (diff) | |
| download | discoin-c0f09c2c9deaec4cfb35ea587363e6301dd17b88.tar.xz discoin-c0f09c2c9deaec4cfb35ea587363e6301dd17b88.zip | |
fuzz: add missing overrides to signature_checker
and also
- add missing parentheses in fuzz/scriptnum_ops.cpp
- remove useless unsigned int conditional in fuzz/script.cpp
These changes fix 5 compile warnings in gcc 10.
Diffstat (limited to 'src/test/fuzz/scriptnum_ops.cpp')
| -rw-r--r-- | src/test/fuzz/scriptnum_ops.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/fuzz/scriptnum_ops.cpp b/src/test/fuzz/scriptnum_ops.cpp index f4e079fb8..68c1ae58c 100644 --- a/src/test/fuzz/scriptnum_ops.cpp +++ b/src/test/fuzz/scriptnum_ops.cpp @@ -33,7 +33,7 @@ void test_one_input(const std::vector<uint8_t>& buffer) case 0: { const int64_t i = fuzzed_data_provider.ConsumeIntegral<int64_t>(); assert((script_num == i) != (script_num != i)); - assert((script_num <= i) != script_num > i); + assert((script_num <= i) != (script_num > i)); assert((script_num >= i) != (script_num < i)); // Avoid signed integer overflow: // script/script.h:264:93: runtime error: signed integer overflow: -2261405121394637306 + -9223372036854775802 cannot be represented in type 'long' |