summaryrefslogtreecommitdiff
path: root/src/modules/json/JSONMemory.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/json/JSONMemory.cpp')
-rw-r--r--src/modules/json/JSONMemory.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/json/JSONMemory.cpp b/src/modules/json/JSONMemory.cpp
index bd9cd045a2..08b6d7fd70 100644
--- a/src/modules/json/JSONMemory.cpp
+++ b/src/modules/json/JSONMemory.cpp
@@ -58,7 +58,7 @@ void * JSONMemory::json_malloc(size_t siz){
JSON_ASSERT(result, JSON_TEXT("out of memory"));
return result;
#else
- return mymalloc(siz);
+ return mymalloc((unsigned long)siz);
#endif
}
#ifdef JSON_DEBUG //in debug mode, see if the malloc was successful
@@ -77,7 +77,7 @@ void * JSONMemory::json_realloc(void * ptr, size_t siz){
JSON_ASSERT(result, JSON_TEXT("out of memory"));
return result;
#else
- return myrealloc(ptr, siz);
+ return myrealloc(ptr, (unsigned long)siz);
#endif
}
#ifdef JSON_DEBUG //in debug mode, see if the malloc was successful