diff options
author | Jon Atack <jon@atack.com> | 2020-07-18 20:27:56 +0200 |
---|---|---|
committer | Jon Atack <jon@atack.com> | 2020-07-22 05:27:13 +0200 |
commit | c0f09c2c9deaec4cfb35ea587363e6301dd17b88 (patch) | |
tree | b8eef39fd4f47828315d928c78b7956ef7cc40e4 /src/test/fuzz/script.cpp | |
parent | 090d87716074434bdc6c7656ec44d049197a793a (diff) |
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/script.cpp')
-rw-r--r-- | src/test/fuzz/script.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/fuzz/script.cpp b/src/test/fuzz/script.cpp index cad548178d..85aac6ac7a 100644 --- a/src/test/fuzz/script.cpp +++ b/src/test/fuzz/script.cpp @@ -48,7 +48,7 @@ void test_one_input(const std::vector<uint8_t>& buffer) if (CompressScript(script, compressed)) { const unsigned int size = compressed[0]; compressed.erase(compressed.begin()); - assert(size >= 0 && size <= 5); + assert(size <= 5); CScript decompressed_script; const bool ok = DecompressScript(decompressed_script, size, compressed); assert(ok); |