sys.FileSystem.stat(path).size returns a negative number for a file more than 2.1 GB long
The problem is all values from stat are cast to 4 byte int:
STATF(size); Sys.cpp#L410
#define STATF(f) o->Add(HX_CSTRING(#f),(int)(s.st_##f)) Sys.cpp#L369
(also mode is set twice)
sys.FileSystem.stat(path).sizereturns a negative number for a file more than 2.1 GB longThe problem is all values from
statare cast to 4 byte int:STATF(size);Sys.cpp#L410#define STATF(f) o->Add(HX_CSTRING(#f),(int)(s.st_##f))Sys.cpp#L369(also mode is set twice)