summaryrefslogtreecommitdiff
path: root/src/3rdparty/squirrel/squirrel/sqmem.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/3rdparty/squirrel/squirrel/sqmem.cpp')
-rw-r--r--src/3rdparty/squirrel/squirrel/sqmem.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/3rdparty/squirrel/squirrel/sqmem.cpp b/src/3rdparty/squirrel/squirrel/sqmem.cpp
index 6faf8165a..26d07047e 100644
--- a/src/3rdparty/squirrel/squirrel/sqmem.cpp
+++ b/src/3rdparty/squirrel/squirrel/sqmem.cpp
@@ -2,8 +2,8 @@
see copyright notice in squirrel.h
*/
#include "sqpcheader.h"
-void *sq_vm_malloc(SQUnsignedInteger size){ return malloc(size); }
+void *sq_vm_malloc(SQUnsignedInteger size){ return malloc((size_t)size); }
-void *sq_vm_realloc(void *p, SQUnsignedInteger oldsize, SQUnsignedInteger size){ return realloc(p, size); }
+void *sq_vm_realloc(void *p, SQUnsignedInteger oldsize, SQUnsignedInteger size){ return realloc(p, (size_t)size); }
void sq_vm_free(void *p, SQUnsignedInteger size){ free(p); }