summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorNicolas 'Pixel' Noble <pixel@nobis-crew.org>2013-01-17 09:12:32 -0800
committerNicolas 'Pixel' Noble <pixel@nobis-crew.org>2013-01-17 09:12:32 -0800
commitc728e983b71898a06685773128ab9f7b76f2ada8 (patch)
tree0d6a11ba77ca20eb1cd5b39830a1f84c877bd077 /includes
parent7a8a3636592a80a5094f40ebddaf7233517086fe (diff)
Shutting off a few warnings.
Diffstat (limited to 'includes')
-rw-r--r--includes/Exceptions.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/includes/Exceptions.h b/includes/Exceptions.h
index 103e394..962a869 100644
--- a/includes/Exceptions.h
+++ b/includes/Exceptions.h
@@ -62,7 +62,7 @@ static inline void * malloc(size_t size) {
void * r = ::malloc(size);
if (!r && size)
- ExitHelper("Failed to allocate memory", "%li bytes", size);
+ ExitHelper("Failed to allocate memory", "%zu bytes", size);
return r;
}
@@ -71,7 +71,7 @@ static inline void * calloc(size_t count, size_t size) {
void * r = ::calloc(count, size);
if (!r && ((count * size) != 0))
- ExitHelper("Failed to allocate memory", "%li * %li = %li bytes", count, size, count * size);
+ ExitHelper("Failed to allocate memory", "%zu * %zu = %zu bytes", count, size, count * size);
return r;
}
@@ -80,7 +80,7 @@ static inline void * realloc(void * previous, size_t size) {
void * r = ::realloc(previous, size);
if (!r && size)
- ExitHelper("Failed to re-allocate memory", "%li bytes", size);
+ ExitHelper("Failed to re-allocate memory", "%zu bytes", size);
return r;
}