diff options
| author | Jeff Garzik <[email protected]> | 2012-04-22 13:51:16 -0400 |
|---|---|---|
| committer | Jeff Garzik <[email protected]> | 2012-04-23 14:14:36 -0400 |
| commit | 1d8c7a9557d596d4c7edee801a724db7a908bce5 (patch) | |
| tree | 5181d28a1c69ecc7c58ba4b0b15417d6817aa949 /src/script.h | |
| parent | Test ScriptSigArgsExpected() for error, before accumulating return value (diff) | |
| download | discoin-1d8c7a9557d596d4c7edee801a724db7a908bce5.tar.xz discoin-1d8c7a9557d596d4c7edee801a724db7a908bce5.zip | |
Add casts for unavoidable signed/unsigned comparisons
At these code sites, it is preferable to cast rather than change
a variable's type.
Diffstat (limited to 'src/script.h')
| -rw-r--r-- | src/script.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/script.h b/src/script.h index 52922af16..e41e09b6b 100644 --- a/src/script.h +++ b/src/script.h @@ -467,7 +467,7 @@ public: opcodetype opcode; do { - while (end() - pc >= b.size() && memcmp(&pc[0], &b[0], b.size()) == 0) + while (end() - pc >= (long)b.size() && memcmp(&pc[0], &b[0], b.size()) == 0) { erase(pc, pc + b.size()); ++nFound; |