forked from rebolsource/r3
-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FIX: Error writing files of exact size 0xffffffff on Windows
resolves: Oldes/Rebol-issues#2282
- Loading branch information
Showing
2 changed files
with
25 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
Rebol [ | ||
Title: "Test for issue #2282" | ||
Url: https://github.com/Oldes/Rebol-issues/issues/2282 | ||
] | ||
|
||
file: %issue-2282 | ||
try [delete file] | ||
print either all [ | ||
not error? try [ | ||
a: make binary! n: 268435391 | ||
insert/dup a #"a" n | ||
loop 16 [write/append file a] | ||
|
||
b: make binary! n: 1039 | ||
insert/dup b #"b" n | ||
write/append file b | ||
] | ||
(size? file) = to integer! #{FFFFFFFF} | ||
]["OK"]["FAILED"] | ||
wait 1 | ||
try [delete file] |