summaryrefslogtreecommitdiff
path: root/third_party/libpng16/pngmem.c
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/libpng16/pngmem.c')
-rw-r--r--third_party/libpng16/pngmem.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/third_party/libpng16/pngmem.c b/third_party/libpng16/pngmem.c
index b5507134fb..cf815a6f88 100644
--- a/third_party/libpng16/pngmem.c
+++ b/third_party/libpng16/pngmem.c
@@ -19,8 +19,8 @@
#include "pngpriv.h"
-void* FXMEM_DefaultAlloc(int byte_size, int);
-void FXMEM_DefaultFree(void* pointer, int);
+void* FXMEM_DefaultAlloc(size_t byte_size);
+void FXMEM_DefaultFree(void* pointer);
#if defined(PNG_READ_SUPPORTED) || defined(PNG_WRITE_SUPPORTED)
/* Free a png_struct */
@@ -95,7 +95,7 @@ png_malloc_base,(png_const_structrp png_ptr, png_alloc_size_t size),
else
#endif
- return FXMEM_DefaultAlloc((int)size, 0);
+ return FXMEM_DefaultAlloc(size);
}
else
@@ -252,7 +252,7 @@ png_free_default,(png_const_structrp png_ptr, png_voidp ptr),PNG_DEPRECATED)
return;
#endif /* USER_MEM */
- FXMEM_DefaultFree(ptr, 0);
+ FXMEM_DefaultFree(ptr);
}
#ifdef PNG_USER_MEM_SUPPORTED