Procházet zdrojové kódy

Patched to compile on MSVC.

Ryan C. Gordon před 19 roky
rodič
revize
71e6a8dc3f
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2 2
      physfs_internal.h

+ 2 - 2
physfs_internal.h

@@ -58,8 +58,8 @@ extern "C" {
 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);