From 193b3d1632b72c9ba2832f51b6839a5e0d0a6c92 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: Mon, 14 Oct 2024 19:13:33 +0300 Subject: [PATCH] Guarantee that the size is 64 bit --- src/hx/libs/std/Sys.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/hx/libs/std/Sys.cpp b/src/hx/libs/std/Sys.cpp index 5bba5a47b..6479bc4d3 100644 --- a/src/hx/libs/std/Sys.cpp +++ b/src/hx/libs/std/Sys.cpp @@ -416,10 +416,10 @@ void _hx_std_sys_rename( String path, String newname ) } #define STATF32(f) o->Add(HX_CSTRING(#f),(int)(s.st_##f)) -#ifdef __APPLE__ -#define STATF64(f) o->Add(HX_CSTRING(#f),static_cast(s.st_##f)) +#if defined(HXCPP_M64) || defined(HXCPP_ARM64) +#define STATF64(f) o->Add(HX_CSTRING(#f), static_cast(s.st_##f)) #else -#define STATF64(f) o->Add(HX_CSTRING(#f),(long)(s.st_##f)) +#define STATF64 STATF32 #endif /**