From 8c8f8da4f3efad595abdb22d115bce5cb94afbde Mon Sep 17 00:00:00 2001 From: Jacob Lifshay Date: Mon, 5 Jun 2017 01:17:29 -0700 Subject: [PATCH] fix parse_hex_integer_string not parsing correctly --- src/generate_spirv_parser/parser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/generate_spirv_parser/parser.cpp b/src/generate_spirv_parser/parser.cpp index 7544b1b..2672816 100644 --- a/src/generate_spirv_parser/parser.cpp +++ b/src/generate_spirv_parser/parser.cpp @@ -177,7 +177,7 @@ T parse_hex_integer_string(const json::ast::Value &value, parent_path_builder->path(), std::string(name) + " has too many digits"); if(retval > max_value / base - || (retval = max_value / base && static_cast(digit) > max_value % base)) + || (retval == max_value / base && static_cast(digit) > max_value % base)) throw Parse_error( value.location, parent_path_builder->path(), std::string(name) + ": value too big"); retval *= base; -- 2.30.2