From 2fd7f11cfe4ebdc6d1035db521e61d15101ab36e Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Wed, 8 Jun 2016 12:42:57 +0100 Subject: Move to using size_t for all mallocs. This has knock on effects in the store. fix --- source/fitz/harfbuzz.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source/fitz/harfbuzz.c') diff --git a/source/fitz/harfbuzz.c b/source/fitz/harfbuzz.c index 30b82c5d..0200c887 100644 --- a/source/fitz/harfbuzz.c +++ b/source/fitz/harfbuzz.c @@ -95,7 +95,7 @@ void *hb_malloc(size_t size) assert(ctx != NULL); - return fz_malloc_no_throw(ctx, (unsigned int)size); + return fz_malloc_no_throw(ctx, size); } void *hb_calloc(size_t n, size_t size) @@ -104,7 +104,7 @@ void *hb_calloc(size_t n, size_t size) assert(ctx != NULL); - return fz_calloc_no_throw(ctx, (unsigned int)n, (unsigned int)size); + return fz_calloc_no_throw(ctx, n, size); } void *hb_realloc(void *ptr, size_t size) @@ -113,7 +113,7 @@ void *hb_realloc(void *ptr, size_t size) assert(ctx != NULL); - return fz_resize_array_no_throw(ctx, ptr, (unsigned int)1, (unsigned int)size); + return fz_resize_array_no_throw(ctx, ptr, 1, size); } void hb_free(void *ptr) -- cgit v1.2.3