@@ -430,25 +430,25 @@ void Reader::readNumber() {
430
430
char c = ' 0' ; // stopgap for already consumed character
431
431
// integral part
432
432
while (c >= ' 0' && c <= ' 9' )
433
- c = (current_ = p) < end_ ? *p++ : 0 ;
433
+ c = (current_ = p) < end_ ? *p++ : ' \0 ' ;
434
434
// fractional part
435
435
if (c == ' .' ) {
436
- c = (current_ = p) < end_ ? *p++ : 0 ;
436
+ c = (current_ = p) < end_ ? *p++ : ' \0 ' ;
437
437
while (c >= ' 0' && c <= ' 9' )
438
- c = (current_ = p) < end_ ? *p++ : 0 ;
438
+ c = (current_ = p) < end_ ? *p++ : ' \0 ' ;
439
439
}
440
440
// exponential part
441
441
if (c == ' e' || c == ' E' ) {
442
- c = (current_ = p) < end_ ? *p++ : 0 ;
442
+ c = (current_ = p) < end_ ? *p++ : ' \0 ' ;
443
443
if (c == ' +' || c == ' -' )
444
- c = (current_ = p) < end_ ? *p++ : 0 ;
444
+ c = (current_ = p) < end_ ? *p++ : ' \0 ' ;
445
445
while (c >= ' 0' && c <= ' 9' )
446
- c = (current_ = p) < end_ ? *p++ : 0 ;
446
+ c = (current_ = p) < end_ ? *p++ : ' \0 ' ;
447
447
}
448
448
}
449
449
450
450
bool Reader::readString () {
451
- Char c = 0 ;
451
+ Char c = ' \0 ' ;
452
452
while (current_ != end_) {
453
453
c = getNextChar ();
454
454
if (c == ' \\ ' )
@@ -1394,20 +1394,20 @@ bool OurReader::readNumber(bool checkInf) {
1394
1394
char c = ' 0' ; // stopgap for already consumed character
1395
1395
// integral part
1396
1396
while (c >= ' 0' && c <= ' 9' )
1397
- c = (current_ = p) < end_ ? *p++ : 0 ;
1397
+ c = (current_ = p) < end_ ? *p++ : ' \0 ' ;
1398
1398
// fractional part
1399
1399
if (c == ' .' ) {
1400
- c = (current_ = p) < end_ ? *p++ : 0 ;
1400
+ c = (current_ = p) < end_ ? *p++ : ' \0 ' ;
1401
1401
while (c >= ' 0' && c <= ' 9' )
1402
- c = (current_ = p) < end_ ? *p++ : 0 ;
1402
+ c = (current_ = p) < end_ ? *p++ : ' \0 ' ;
1403
1403
}
1404
1404
// exponential part
1405
1405
if (c == ' e' || c == ' E' ) {
1406
- c = (current_ = p) < end_ ? *p++ : 0 ;
1406
+ c = (current_ = p) < end_ ? *p++ : ' \0 ' ;
1407
1407
if (c == ' +' || c == ' -' )
1408
- c = (current_ = p) < end_ ? *p++ : 0 ;
1408
+ c = (current_ = p) < end_ ? *p++ : ' \0 ' ;
1409
1409
while (c >= ' 0' && c <= ' 9' )
1410
- c = (current_ = p) < end_ ? *p++ : 0 ;
1410
+ c = (current_ = p) < end_ ? *p++ : ' \0 ' ;
1411
1411
}
1412
1412
return true ;
1413
1413
}
0 commit comments