physfs_internal.h
changeset 857 5ecd1349c789
parent 852 9467e96abdf1
child 903 f5bad51e0f93
--- 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);