]> gitweb.factorcode.org Git - factor.git/commitdiff
using integer>fixnum in more places.
authorJohn Benediktsson <mrjbq7@gmail.com>
Thu, 2 Aug 2012 21:26:39 +0000 (14:26 -0700)
committerJohn Benediktsson <mrjbq7@gmail.com>
Thu, 2 Aug 2012 21:26:39 +0000 (14:26 -0700)
core/byte-arrays/byte-arrays.factor
core/sbufs/sbufs.factor

index 3c89a5f63e777dc9a28854fa9ee0b761e151d68c..f9c62800912d9ef68528a92bfac71bbf4a45c341 100644 (file)
@@ -6,8 +6,8 @@ IN: byte-arrays
 
 M: byte-array clone (clone) ; inline
 M: byte-array length length>> ; inline
-M: byte-array nth-unsafe swap >fixnum alien-unsigned-1 ; inline
-M: byte-array set-nth-unsafe swap >fixnum set-alien-unsigned-1 ; inline
+M: byte-array nth-unsafe swap integer>fixnum alien-unsigned-1 ; inline
+M: byte-array set-nth-unsafe swap integer>fixnum set-alien-unsigned-1 ; inline
 : >byte-array ( seq -- byte-array ) B{ } clone-like ; inline
 M: byte-array new-sequence drop (byte-array) ; inline
 
index db2649142d7b408203d7d3dad35ee1e20aecd10a..13af7c65cbaac971a98c1b490c78231e28d801da 100644 (file)
@@ -11,10 +11,11 @@ TUPLE: sbuf
 : <sbuf> ( n -- sbuf ) 0 <string> 0 sbuf boa ; inline
 
 M: sbuf set-nth-unsafe
-    [ >fixnum ] [ >fixnum ] [ underlying>> ] tri* set-string-nth ; inline
+    [ integer>fixnum ] [ integer>fixnum ] [ underlying>> ] tri*
+    set-string-nth ; inline
 
 M: sbuf new-sequence
-    drop [ 0 <string> ] [ >fixnum ] bi sbuf boa ; inline
+    drop [ 0 <string> ] [ integer>fixnum ] bi sbuf boa ; inline
 
 : >sbuf ( seq -- sbuf ) SBUF" " clone-like ; inline