]> gitweb.factorcode.org Git - factor.git/commitdiff
new accessors
authorDoug Coleman <doug.coleman@gmail.com>
Mon, 1 Sep 2008 23:22:41 +0000 (18:22 -0500)
committerDoug Coleman <doug.coleman@gmail.com>
Mon, 1 Sep 2008 23:22:41 +0000 (18:22 -0500)
basis/io/buffers/buffers-tests.factor

index 74a1797efc0ff5a5e680872649ef56e46743af78..b3c5c4ee905751ead7fb1d51e90d86aecfc2075d 100755 (executable)
@@ -4,7 +4,7 @@ sequences tools.test namespaces byte-arrays strings accessors
 destructors ;
 
 : buffer-set ( string buffer -- )
-    over >byte-array over buffer-ptr byte-array>memory
+    over >byte-array over ptr>> byte-array>memory
     >r length r> buffer-reset ;
 
 : string>buffer ( string -- buffer )