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){
185
185
read (); // consume the character we got with peek
186
186
c = timedPeek ();
187
187
}
188
- while ( (c >= ' 0' && c <= ' 9' ) || c == ' .' || c == skipChar );
188
+ while ( (c >= ' 0' && c <= ' 9' ) || c == ' .' && !isFraction || c == skipChar );
189
189
190
190
if (isNegative)
191
191
value = -value;
Original file line number Diff line number Diff line change @@ -185,7 +185,7 @@ float Stream::parseFloat(char skipChar){
185
185
read (); // consume the character we got with peek
186
186
c = timedPeek ();
187
187
}
188
- while ( (c >= ' 0' && c <= ' 9' ) || c == ' .' || c == skipChar );
188
+ while ( (c >= ' 0' && c <= ' 9' ) || c == ' .' && !isFraction || c == skipChar );
189
189
190
190
if (isNegative)
191
191
value = -value;
You can’t perform that action at this time.
0 commit comments