Skip to content

Commit 28152db

Browse files
committed
Add fflush to sqFileTruncate to make FileHandleTest green on (my) 64 bit platform
1 parent 97b799c commit 28152db

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

platforms/Cross/plugins/FilePlugin/sqFilePluginBasicPrims.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -773,6 +773,7 @@ sqInt
773773
sqFileTruncate(SQFile *f, squeakFileOffsetType offset) {
774774
if (!sqFileValid(f))
775775
return interpreterProxy->success(false);
776+
fflush(getFile(f));
776777
if (sqFTruncate(getFile(f), offset))
777778
return interpreterProxy->success(false);
778779
return 1;

0 commit comments

Comments
 (0)