Fix integer parsing in simple JSON parser. #844 #730

This commit is contained in:
Penn, John M 047828115 2019-07-22 16:20:24 -05:00
parent 0df631c41a
commit e7e937eed9

View File

@ -101,7 +101,8 @@ int LexicalAnalyzer::next_lexeme() {
case 2 : { // Integer literal accumulation state.
while ((ch != 0 ) && (isdigit(ch)))
ch = getch();
vlen = p-vs-1;
ungetch();
vlen = p-vs;
return INTEGER ;
} break;
default: