]> gitweb.factorcode.org Git - factor.git/commitdiff
pack: M\ string heap-size doesn't exist.
authorJohn Benediktsson <mrjbq7@gmail.com>
Wed, 25 Jan 2017 00:11:33 +0000 (16:11 -0800)
committerJohn Benediktsson <mrjbq7@gmail.com>
Wed, 25 Jan 2017 00:11:33 +0000 (16:11 -0800)
basis/pack/pack.factor

index 8fe0e9f8a9a1efab7120850a0bd813e227ca8f7d..80e54dfb6a21630aabf850caf08cfbdcb55f7949 100644 (file)
@@ -10,7 +10,7 @@ GENERIC: >n-byte-array ( obj n -- byte-array )
 M: integer >n-byte-array ( m n -- byte-array ) >endian ;
 
 ! for doing native, platform-dependent sized values
-M: string >n-byte-array ( n string -- byte-array ) heap-size >n-byte-array ;
+M: object >n-byte-array ( n string -- byte-array ) heap-size >n-byte-array ;
 
 : s8>byte-array ( n -- byte-array ) 1 >n-byte-array ;
 : u8>byte-array ( n -- byte-array ) 1 >n-byte-array ;