Skip to content

Commit 09f0b73

Browse files
committed
Fix scanning of precision in LOC RR
1 parent e827b06 commit 09f0b73

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/generic/loc.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ static really_inline int32_t scan_precision(
235235
return -1; // syntax error
236236

237237
uint8_t exponent = 0;
238-
while (centimeters > poweroften[exponent+1] && exponent < 9)
238+
while (centimeters >= poweroften[exponent+1] && exponent < 9)
239239
exponent++;
240240

241241
uint8_t mantissa = (uint8_t)(centimeters / poweroften[exponent]);

0 commit comments

Comments
 (0)