From 565f973e2e3c69c424fc122731967c47dd44f710 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Mon, 1 Oct 2007 15:47:40 +0000 Subject: [PATCH] Mingw32 fix for 64-bit literals. --- CHANGELOG.txt | 1 + platform/windows.c | 6 ++---- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 282236f6..cf40e996 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -2,6 +2,7 @@ * CHANGELOG. */ +10012007 - More mingw32 fixes. 07122007 - Maybe fixed compile on mingw32. 07112007 - Fixed crash on zero-byte read/write (thanks, Ensiform!). 05272007 - FIXME removal: Replaced a strncpy() with a memcpy(). diff --git a/platform/windows.c b/platform/windows.c index 172cb86a..7cf53e25 100644 --- a/platform/windows.c +++ b/platform/windows.c @@ -26,10 +26,8 @@ #include "physfs_internal.h" -#define LOWORDER_UINT64(pos) (PHYSFS_uint32) \ - (pos & 0x00000000FFFFFFFF) -#define HIGHORDER_UINT64(pos) (PHYSFS_uint32) \ - (((pos & 0xFFFFFFFF00000000) >> 32) & 0x00000000FFFFFFFF) +#define LOWORDER_UINT64(pos) ((PHYSFS_uint32) (pos & 0xFFFFFFFF)) +#define HIGHORDER_UINT64(pos) ((PHYSFS_uint32) ((pos >> 32) & 0xFFFFFFFF)) /* * Users without the platform SDK don't have this defined. The original docs