Fix benchmark print_number infinite loop.
This commit is contained in:
parent
8b7680a826
commit
a2b6b1914f
|
@ -23,7 +23,7 @@ void print_number(double x) {
|
|||
if (y < 0.0) {
|
||||
y = -y;
|
||||
}
|
||||
while (y < 100.0) {
|
||||
while (y > 0 && y < 100.0) {
|
||||
y *= 10.0;
|
||||
c++;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue