From: Rudolf Polzer Date: Mon, 23 Jan 2012 17:18:01 +0000 (+0100) Subject: fix type cast X-Git-Tag: xonotic-v0.6.0~24 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=898cef614cb5901ed35e1b9da2eb483b038a7e60;p=xonotic%2Fnetradiant.git fix type cast --- diff --git a/plugins/imagepng/plugin.cpp b/plugins/imagepng/plugin.cpp index 05aea74b..9d1a3e35 100644 --- a/plugins/imagepng/plugin.cpp +++ b/plugins/imagepng/plugin.cpp @@ -87,7 +87,7 @@ Image* LoadPNGBuff (unsigned char* fbuffer) } // configure the read function - png_set_read_fn(png_ptr, (voidp)&p_fbuffer, (png_rw_ptr)&user_read_data); + png_set_read_fn(png_ptr, (png_voidp)&p_fbuffer, (png_rw_ptr)&user_read_data); if (setjmp(png_jmpbuf(png_ptr))) { png_destroy_read_struct(&png_ptr, &info_ptr,