Get rid of some useless-cast
[novacoin.git] / src / script.h
index ff289a5..745f848 100644 (file)
@@ -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)
     {