Merge pull request #755 from AdamMajer/fix_old_gcc

Fix compilation with older GCC versions
This commit is contained in:
Milo Yip 2016-10-01 15:46:21 +08:00 committed by GitHub
commit b4dae2b77d

View File

@ -575,7 +575,7 @@ private:
} }
} }
else if (RAPIDJSON_LIKELY(Consume(is, '/'))) else if (RAPIDJSON_LIKELY(Consume(is, '/')))
while (is.Peek() != '\0' && is.Take() != '\n'); while (is.Peek() != '\0' && is.Take() != '\n') {}
else else
RAPIDJSON_PARSE_ERROR(kParseErrorUnspecificSyntaxError, is.Tell()); RAPIDJSON_PARSE_ERROR(kParseErrorUnspecificSyntaxError, is.Tell());