Skip to content

Commit

Permalink
Guarantee that the size is 64 bit
Browse files Browse the repository at this point in the history
  • Loading branch information
barisyild authored Oct 14, 2024
1 parent a427d1f commit 193b3d1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/hx/libs/std/Sys.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<int64_t>(s.st_##f))
#if defined(HXCPP_M64) || defined(HXCPP_ARM64)
#define STATF64(f) o->Add(HX_CSTRING(#f), static_cast<int64_t>(s.st_##f))
#else
#define STATF64(f) o->Add(HX_CSTRING(#f),(long)(s.st_##f))
#define STATF64 STATF32
#endif

/**
Expand Down

0 comments on commit 193b3d1

Please sign in to comment.