* tests/numbers.test (fixnum-bit): compute dynamically.
authorRob Browning <rlb@defaultvalue.org>
Fri, 21 Sep 2001 17:54:27 +0000 (17:54 +0000)
committerRob Browning <rlb@defaultvalue.org>
Fri, 21 Sep 2001 17:54:27 +0000 (17:54 +0000)
test-suite/tests/numbers.test

index f7863bf..ad02d62 100644 (file)
@@ -50,7 +50,9 @@
 (define (documented? object)
   (not (not (object-documentation object))))
 
-(define fixnum-bit 30)
+(define fixnum-bit
+  (inexact->exact (+ (/ (log (+ most-positive-fixnum 1)) (log 2)) 1)))
+
 (define fixnum-min most-negative-fixnum)
 (define fixnum-max most-positive-fixnum)