1
0
mirror of https://github.com/blawar/GLideN64.git synced 2024-07-02 09:03:37 +00:00

Fix warning.

This commit is contained in:
Sergey Lipskiy 2019-08-11 19:29:13 +07:00
parent 7785e305d4
commit 0272bb626b

View File

@ -180,7 +180,7 @@ TxImage::readPNG(FILE* fp, int* width, int* height, ColorFormat *format)
png_read_update_info(png_ptr, info_ptr);
/* we only get here if RGBA8888 */
row_bytes = png_get_rowbytes(png_ptr, info_ptr);
row_bytes = static_cast<int>(png_get_rowbytes(png_ptr, info_ptr));
/* allocate memory to read in image */
image = (uint8*)malloc(row_bytes * o_height);