From f4ee65daa503c920e1e25a20b48e1c95b4a57888 Mon Sep 17 00:00:00 2001 From: Wouter Wijngaards Date: Thu, 26 Apr 2007 07:33:29 +0000 Subject: [PATCH] fp fix. git-svn-id: file:///svn/unbound/trunk@259 be551aaa-1e26-0410-a405-d3ace91eadb9 --- doc/Changelog | 3 +++ testcode/lock_verify.c | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/doc/Changelog b/doc/Changelog index 612b48275..c7fea50d4 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -1,3 +1,6 @@ +26 April 2007: Wouter + - floating point exception fix in lock-verify. + 25 April 2007: Wouter - prettier code; parse_rrset->type kept in host byte order. - datatype used for hashvalue of converted rrsig structure. diff --git a/testcode/lock_verify.c b/testcode/lock_verify.c index fcb1db92c..3da4ed4c0 100644 --- a/testcode/lock_verify.c +++ b/testcode/lock_verify.c @@ -380,7 +380,8 @@ static void check_order(rbtree_t* all_locks) i, (int)all_locks->count, lock->id.thr, lock->id.instance, lock->create_file, lock->create_line); - else if (i % (all_locks->count/75) == 0) + else if (i % ((all_locks->count/75)<1?1:all_locks->count/75) + == 0) fprintf(stderr, "."); i++; check_order_lock(lock); -- 2.47.2