r869 - trunk
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Sun Mar 25 00:59:12 EDT 2007
Author: icculus
Date: 2007-03-25 00:59:11 -0400 (Sun, 25 Mar 2007)
New Revision: 869
Modified:
trunk/physfs_internal.h
Log:
Patched to compile on MSVC.
Modified: trunk/physfs_internal.h
===================================================================
--- trunk/physfs_internal.h 2007-03-25 00:38:14 UTC (rev 868)
+++ trunk/physfs_internal.h 2007-03-25 04:59:11 UTC (rev 869)
@@ -58,8 +58,8 @@
void *__PHYSFS_initSmallAlloc(void *ptr, PHYSFS_uint64 len);
#define __PHYSFS_smallAlloc(bytes) ( \
- __PHYSFS_initSmallAlloc(((bytes < __PHYSFS_SMALLALLOCTHRESHOLD) ? \
- alloca(bytes+1) : NULL), bytes) \
+ __PHYSFS_initSmallAlloc((((bytes) < __PHYSFS_SMALLALLOCTHRESHOLD) ? \
+ alloca((size_t)((bytes)+1)) : NULL), (bytes)) \
)
void __PHYSFS_smallFree(void *ptr);
More information about the physfs-commits
mailing list