Patched to compile on MSVC.
authorRyan C. Gordon <icculus@icculus.org>
Sun, 25 Mar 2007 04:59:11 +0000
changeset 857 5ecd1349c789
parent 856 8b8b8f67afdb
child 858 969e69b2822f
Patched to compile on MSVC.
physfs_internal.h
--- a/physfs_internal.h	Sun Mar 25 00:38:14 2007 +0000
+++ b/physfs_internal.h	Sun Mar 25 04:59:11 2007 +0000
@@ -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);