]> Git Repo - secp256k1.git/commitdiff
Fix benchmark print_number infinite loop.
authorGregory Maxwell <[email protected]>
Mon, 24 Apr 2017 06:02:36 +0000 (06:02 +0000)
committerGregory Maxwell <[email protected]>
Mon, 24 Apr 2017 06:02:36 +0000 (06:02 +0000)
src/bench.h

index 3a71b4aafa048d9ba79ad1fcb432139f94550a6c..d67f08a4267bcb2e03e8ffbedb8c01de2691863b 100644 (file)
@@ -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++;
     }
This page took 0.024441 seconds and 4 git commands to generate.