]> gitweb.factorcode.org Git - factor.git/commitdiff
math.integers: fixnum-bit? should not use fixnum-shift-fast.
authorJohn Benediktsson <mrjbq7@gmail.com>
Wed, 17 Jun 2015 15:21:00 +0000 (08:21 -0700)
committerJohn Benediktsson <mrjbq7@gmail.com>
Wed, 17 Jun 2015 15:22:00 +0000 (08:22 -0700)
core/math/integers/integers.factor

index e553d93a00bbb3581ea9974479f0583f148a54cd..b52400c8c1816159d7547ef57968bb3476fc47f8 100644 (file)
@@ -52,8 +52,8 @@ M: fixnum shift integer>fixnum fixnum-shift ; inline
 M: fixnum bitnot fixnum-bitnot ; inline
 
 : fixnum-bit? ( x n -- ? )
-    integer>fixnum dup 0 >= [
-        neg fixnum-shift-fast even? not
+    integer>fixnum-strict dup 0 >= [
+        neg shift even? not
     ] [ 2drop f ] if ; inline
 
 M: fixnum bit? fixnum-bit? ; inline