]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/gifdecod.cpp
implementation of wxGetPasswordFromUser
[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 */
             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))
             pimg->pal = (unsigned char *) malloc(768);
 
             if ((!pimg->p) || (!pimg->pal))