File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -322,26 +322,26 @@ - (sbjson_token_t)getNumberToken:(NSObject**)token {
322
322
return sbjson_token_eof;
323
323
}
324
324
325
- short exp = 0 ;
326
- short exp_length = 0 ;
325
+ short explicit_exponent = 0 ;
326
+ short explicit_exponent_length = 0 ;
327
327
while ([digits characterIsMember: ch]) {
328
- exp *= 10 ;
329
- exp += (ch - ' 0' );
330
- exp_length ++;
328
+ explicit_exponent *= 10 ;
329
+ explicit_exponent += (ch - ' 0' );
330
+ explicit_exponent_length ++;
331
331
332
332
if (![_stream getNextUnichar: &ch])
333
333
return sbjson_token_eof;
334
334
}
335
335
336
- if (exp_length == 0 ) {
336
+ if (explicit_exponent_length == 0 ) {
337
337
self.error = @" No digits in exponent" ;
338
338
return sbjson_token_error;
339
339
}
340
340
341
341
if (expIsNegative)
342
- exponent -= exp ;
342
+ exponent -= explicit_exponent ;
343
343
else
344
- exponent += exp ;
344
+ exponent += explicit_exponent ;
345
345
}
346
346
347
347
if (!mantissa_length && isNegative) {
You can’t perform that action at this time.
0 commit comments