]> gitweb.factorcode.org Git - factor.git/commitdiff
Fix Unix I/O on 64-bit
authorSlava Pestov <slava@factorcode.org>
Sat, 5 Jul 2008 08:47:09 +0000 (03:47 -0500)
committerSlava Pestov <slava@factorcode.org>
Sat, 5 Jul 2008 08:47:09 +0000 (03:47 -0500)
extra/io/unix/backend/backend.factor

index 2128142615993c98411460233f49361efc115393..7f130fc7e3f64b5fbebb212cba60c067b7975252 100755 (executable)
@@ -168,7 +168,7 @@ M: stdin dispose
 
 : wait-for-stdin ( stdin -- n )
     [ control>> CHAR: X over io:stream-write1 io:stream-flush ]
-    [ size>> "uint" heap-size swap io:stream-read *uint ]
+    [ size>> "size_t" heap-size swap io:stream-read *uint ]
     bi ;
 
 :: refill-stdin ( buffer stdin size -- )