Fixed JSON integers as strings not being parsed correctly.
authorWouter van Oortmerssen <wvo@google.com>
Mon, 11 Apr 2016 18:08:09 +0000 (11:08 -0700)
committerWouter van Oortmerssen <wvo@google.com>
Mon, 11 Apr 2016 18:08:09 +0000 (11:08 -0700)
Change-Id: If34aef46ef619e06de799cff14948b02e98da86d
Tested: on Linux.

src/idl_parser.cpp

index 21508cc..1df44ad 100644 (file)
@@ -974,6 +974,7 @@ CheckedError Parser::ParseSingleValue(Value &e) {
         assert(0);  // Shouldn't happen, we covered all types.
         e.constant = "0";
       }
+      NEXT();
     }
   } else {
     bool match = false;