summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2013-04-11 14:02:15 +0100
committerMichael Drake <tlsa@netsurf-browser.org>2013-04-11 14:02:15 +0100
commit6aa5fac37c0defce20c05bb495cc4be93640d0de (patch)
tree70bf5f7c3743a0789628c2dee088122f6d91a52b /src
parentf745646300856f3c0a3ce31b6976874e3251928a (diff)
downloadlibnsgif-6aa5fac37c0defce20c05bb495cc4be93640d0de.tar.gz
libnsgif-6aa5fac37c0defce20c05bb495cc4be93640d0de.tar.bz2
Fix up scan-build: "Result of 'calloc' is converted to a pointer of type 'unsigned int', which is incompatible with sizeof operand type 'int'".
Diffstat (limited to 'src')
-rw-r--r--src/libnsgif.c4
1 files changed, 2 insertions, 2 deletions
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;