[Pkg-bitcoin-commits] [libsecp256k1] 15/37: Fix benchmark print_number infinite loop.
Jonas Smedegaard
dr at jones.dk
Fri Aug 18 11:27:53 UTC 2017
This is an automated email from the git hooks/post-receive script.
js pushed a commit to branch master
in repository libsecp256k1.
commit a2b6b1914f5146e563697438a8cb54faefeefb92
Author: Gregory Maxwell <greg at xiph.org>
Date: Mon Apr 24 06:02:36 2017 +0000
Fix benchmark print_number infinite loop.
---
src/bench.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/bench.h b/src/bench.h
index 3a71b4a..d67f08a 100644
--- a/src/bench.h
+++ b/src/bench.h
@@ -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++;
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-bitcoin/libsecp256k1.git
More information about the Pkg-bitcoin-commits
mailing list