]> gitweb.factorcode.org Git - factor.git/commitdiff
io.directories.windows: fix truncate-file
authorJohn Benediktsson <mrjbq7@gmail.com>
Fri, 19 May 2023 18:58:26 +0000 (11:58 -0700)
committerJohn Benediktsson <mrjbq7@gmail.com>
Fri, 19 May 2023 18:58:26 +0000 (11:58 -0700)
basis/io/directories/windows/windows.factor

index a0dc7680d282060aae2efc3225a7e7fbe6d5412c..421fc61bf492804b51dfb012d4cf27e13e0d51b7 100644 (file)
@@ -14,8 +14,7 @@ M: windows touch-file
 
 M: windows truncate-file
     [ normalize-path open-file ] dip '[
-        [ _ 0 FILE_END set-file-pointer ]
-        [ set-end-of-file ] bi
+        [ _ FILE_END set-file-pointer ] [ set-end-of-file ] bi
     ] with-disposal ;
 
 M: windows move-file