From 4f424283bc3b748958d816504296e866aff7b318 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Y=C4=B1ld=C4=B1r=C4=B1m?= <25794892+barisyild@users.noreply.github.com> Date: Tue, 15 Oct 2024 15:41:14 +0300 Subject: [PATCH] Fix file size integer overflow above 2GB files. --- std/sys/FileStat.hx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/std/sys/FileStat.hx b/std/sys/FileStat.hx index 7794282c4a1..8661b343925 100644 --- a/std/sys/FileStat.hx +++ b/std/sys/FileStat.hx @@ -22,6 +22,8 @@ package sys; +import haxe.Int64; + /** File information, as given by `sys.FileSystem.stat`. **/ @@ -54,7 +56,7 @@ typedef FileStat = { /** The size of the file, in bytes. **/ - var size:Int; + var size:Int64; /** The device on which stat resides.