diff options
| author | Jeff Garzik <[email protected]> | 2011-07-12 20:22:38 -0700 |
|---|---|---|
| committer | Jeff Garzik <[email protected]> | 2011-07-12 20:22:38 -0700 |
| commit | 4ea952d5c03e18b9ddd0e97f4434cd9092358dab (patch) | |
| tree | f0f627dc9188eb11b02bed39ca66287ccd9634af /src/script.cpp | |
| parent | Update makefile.linux-mingw to work with crypter and UPnP fix. (diff) | |
| parent | fix warning: unused function 'SigIllHandlerSSE2' [-Wunused-function] (diff) | |
| download | discoin-4ea952d5c03e18b9ddd0e97f4434cd9092358dab.tar.xz discoin-4ea952d5c03e18b9ddd0e97f4434cd9092358dab.zip | |
Merge pull request #399 from muggenhor/warning-fixes
Warning fixes
Diffstat (limited to 'src/script.cpp')
| -rw-r--r-- | src/script.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/script.cpp b/src/script.cpp index aa7f1f511..654aaa10e 100644 --- a/src/script.cpp +++ b/src/script.cpp @@ -580,6 +580,7 @@ bool EvalScript(vector<vector<unsigned char> >& stack, const CScript& script, co case OP_ABS: if (bn < bnZero) bn = -bn; break; case OP_NOT: bn = (bn == bnZero); break; case OP_0NOTEQUAL: bn = (bn != bnZero); break; + default: assert(!"invalid opcode"); break; } popstack(stack); stack.push_back(bn.getvch()); @@ -659,6 +660,7 @@ bool EvalScript(vector<vector<unsigned char> >& stack, const CScript& script, co case OP_GREATERTHANOREQUAL: bn = (bn1 >= bn2); break; case OP_MIN: bn = (bn1 < bn2 ? bn1 : bn2); break; case OP_MAX: bn = (bn1 > bn2 ? bn1 : bn2); break; + default: assert(!"invalid opcode"); break; } popstack(stack); popstack(stack); |