]> gitweb.factorcode.org Git - factor.git/commitdiff
Remove useless bitand from integer>bit-array; set-alien-unsigned-1 does that for us!
authorJoe Groff <arcata@gmail.com>
Mon, 7 Jul 2008 02:39:53 +0000 (19:39 -0700)
committerJoe Groff <arcata@gmail.com>
Mon, 7 Jul 2008 02:39:53 +0000 (19:39 -0700)
extra/bit-arrays/bit-arrays.factor

index 3d699a2623c20afe11c9d69416cfff182a35817d..4e6f7428b055efd9732b063a96338dfb074c9f57 100755 (executable)
@@ -76,7 +76,7 @@ M: bit-array byte-length length 7 + -3 shift ;
     n zero? [ 0 <bit-array> ] [
         [let | out [ n log2 1+ <bit-array> ] i! [ 0 ] n'! [ n ] |
             [ n' zero? not ] [
-                n' out underlying>> i 255 bitand set-alien-unsigned-1
+                n' out underlying>> i set-alien-unsigned-1
                 n' -8 shift n'!
                 i 1+ i!
             ] [ ] while