msvc: silence some build warnings

these are related to the removal of USE_LOSSLESS_ENCODER

Change-Id: Ib0ca5bc2766c351130507bc2e657a034c8455b34
This commit is contained in:
James Zern
2012-06-13 13:51:50 -07:00
parent f180df2afd
commit 18cae37b91
2 changed files with 2 additions and 2 deletions

View File

@ -113,7 +113,7 @@ int WebPPictureAlloc(WebPPicture* const picture) {
return 0;
}
WebPPictureFree(picture); // erase previous buffer
picture->argb = (uint32_t*)malloc(total_size);
picture->argb = (uint32_t*)malloc((size_t)total_size);
if (picture->argb == NULL) return 0;
picture->argb_stride = width;
}