From c8e29d7ff0da853d4243c08b34c15fab3dfcc76f Mon Sep 17 00:00:00 2001 From: Mark Friedenbach Date: Tue, 11 Jul 2017 16:37:40 +0900 Subject: Replace MAX_OPCODE for OP_NOP10. That OP_NOP10 is the last executable opcode is a bit of a obscure trivia, and the MAX_OPCODE constant already exists. This merely standardizes use of MAX_OPCODE over OP_NOP10 where it makes sense and is more clear. --- src/core_read.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/core_read.cpp') diff --git a/src/core_read.cpp b/src/core_read.cpp index dd9b5726a3..18d02fb913 100644 --- a/src/core_read.cpp +++ b/src/core_read.cpp @@ -27,7 +27,7 @@ CScript ParseScript(const std::string& s) if (mapOpNames.empty()) { - for (int op = 0; op <= OP_NOP10; op++) + for (int op = 0; op <= MAX_OPCODE; op++) { // Allow OP_RESERVED to get into mapOpNames if (op < OP_NOP && op != OP_RESERVED) -- cgit v1.2.3