Mingw32 fix for 64-bit literals.
authorRyan C. Gordon <icculus@icculus.org>
Mon, 01 Oct 2007 15:47:40 +0000
changeset 908 662ca06432ef
parent 906 4fb7ae54f321
child 910 0860638fad95
Mingw32 fix for 64-bit literals.
CHANGELOG.txt
platform/windows.c
--- a/CHANGELOG.txt	Mon Oct 01 15:47:07 2007 +0000
+++ b/CHANGELOG.txt	Mon Oct 01 15:47:40 2007 +0000
@@ -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().
--- a/platform/windows.c	Mon Oct 01 15:47:07 2007 +0000
+++ b/platform/windows.c	Mon Oct 01 15:47:40 2007 +0000
@@ -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