From 71e6a8dc3f01bf4671092391cfadc185a11583db Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Sun, 25 Mar 2007 04:59:11 +0000 Subject: [PATCH] Patched to compile on MSVC. --- physfs_internal.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/physfs_internal.h b/physfs_internal.h index f8449d08..f9da66e1 100644 --- a/physfs_internal.h +++ b/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);