From 6aa5fac37c0defce20c05bb495cc4be93640d0de Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Thu, 11 Apr 2013 14:02:15 +0100 Subject: Fix up scan-build: "Result of 'calloc' is converted to a pointer of type 'unsigned int', which is incompatible with sizeof operand type 'int'". --- src/libnsgif.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/libnsgif.c b/src/libnsgif.c index 9c5b84f..dd44a43 100644 --- a/src/libnsgif.c +++ b/src/libnsgif.c @@ -265,8 +265,8 @@ gif_result gif_initialise(gif_animation *gif, size_t size, unsigned char *data) always get the maximum size in case a GIF is lying to us. It's far better to give the wrong colours than to trample over some memory somewhere. */ - gif->global_colour_table = (unsigned int *)calloc(GIF_MAX_COLOURS, sizeof(int)); - gif->local_colour_table = (unsigned int *)calloc(GIF_MAX_COLOURS, sizeof(int)); + gif->global_colour_table = calloc(GIF_MAX_COLOURS, sizeof(unsigned int)); + gif->local_colour_table = calloc(GIF_MAX_COLOURS, sizeof(unsigned int)); if ((gif->global_colour_table == NULL) || (gif->local_colour_table == NULL)) { gif_finalise(gif); return GIF_INSUFFICIENT_MEMORY; -- cgit v1.2.3