mirror of
https://github.com/status-im/secp256k1.git
synced 2025-02-24 11:48:18 +00:00
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…
x
Reference in New Issue
Block a user