diff options
Fix build with GCC 8.3.0
- CheckOpCode takes an int, otherwise it will always return true
1 files changed, 2 insertions, 1 deletions
| -rw-r--r-- | JSImpl/src/JSONParser.cpp | 3 |
diff --git a/JSImpl/src/JSONParser.cpp b/JSImpl/src/JSONParser.cpp index 13ad9d6..275fb0e 100644 --- a/JSImpl/src/JSONParser.cpp +++ b/JSImpl/src/JSONParser.cpp @@ -3,6 +3,7 @@ #include <unordered_map> #include <cstdlib> +#include <cstring> void SkipWhitespaces(const char*& json) { @@ -71,7 +72,7 @@ ExpressionPtr JSONParseWrap(const char*& json, const char* eName) template <> \ ExpressionPtr JSONParseWrap<ClassName##Type>(const char*& json, const char* eName) \ { \ - auto ptr = IPLMakeSharePtr<::##ClassName>(); \ + auto ptr = IPLMakeSharePtr<::ClassName>(); \ int membersCount = 0, currentVisitCount = 0; \ (void)currentVisitCount; \ json += strlen("{"); \ |
