]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/gifdecod.cpp
1. more warnings fixes in gtk/region.cpp and common/tbarsmpl.cpp
[wxWidgets.git] / src / common / gifdecod.cpp
index 39dfd44e8cbdf12ac87a15d5739fcc7098322f9f..66c9aad915b90b6f252fc7553e6c5c9eb3e51c66 100644 (file)
@@ -588,7 +588,7 @@ int wxGIFDecoder::ReadGIF()
             ppimg = &pimg->next;
 
             /* allocate memory for image and palette */
-            pimg->p   = (unsigned char *) malloc(size);
+            pimg->p   = (unsigned char *) malloc((size_t)size);
             pimg->pal = (unsigned char *) malloc(768);
 
             if ((!pimg->p) || (!pimg->pal))