File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -185,7 +185,7 @@ float Stream::parseFloat(char skipChar){
185185 read (); // consume the character we got with peek
186186 c = timedPeek ();
187187 }
188- while ( (c >= ' 0' && c <= ' 9' ) || c == ' .' || c == skipChar );
188+ while ( (c >= ' 0' && c <= ' 9' ) || c == ' .' && !isFraction || c == skipChar );
189189
190190 if (isNegative)
191191 value = -value;
Original file line number Diff line number Diff line change @@ -185,7 +185,7 @@ float Stream::parseFloat(char skipChar){
185185 read (); // consume the character we got with peek
186186 c = timedPeek ();
187187 }
188- while ( (c >= ' 0' && c <= ' 9' ) || c == ' .' || c == skipChar );
188+ while ( (c >= ' 0' && c <= ' 9' ) || c == ' .' && !isFraction || c == skipChar );
189189
190190 if (isNegative)
191191 value = -value;
You can’t perform that action at this time.
0 commit comments