X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=src%2Fscript.h;fp=src%2Fscript.h;h=745f84847c50a6092851fbcb3f4d8ba1e44396ee;hb=40a76f11c7056c53f71bfc60419ba7354016f55f;hp=ff289a53ff57a46ffb62141d43453c8a236dd5fc;hpb=f1c39767b83720bad25d1e47c7f49a01ab95c0f9;p=novacoin.git diff --git a/src/script.h b/src/script.h index ff289a5..745f848 100644 --- a/src/script.h +++ b/src/script.h @@ -486,7 +486,7 @@ public: if (opcode == OP_0) return 0; assert(opcode >= OP_1 && opcode <= OP_16); - return (int)opcode - (int)(OP_1 - 1); + return (opcode - (OP_1 - 1)); } static opcodetype EncodeOP_N(int n) {