File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ static void user_error_fn(png_structp png_ptr, png_const_charp message)
58
58
* Custom read function to use Allegro packfile routines,
59
59
* rather than C streams (so we can read from datafiles!)
60
60
*/
61
- static void read_data (png_structp png_ptr , png_bytep data , png_uint_32 length )
61
+ static void read_data (png_structp png_ptr , png_bytep data , size_t length )
62
62
{
63
63
ALLEGRO_FILE * f = (ALLEGRO_FILE * )png_get_io_ptr (png_ptr );
64
64
if ((png_uint_32 ) al_fread (f , data , length ) != length )
@@ -436,7 +436,7 @@ ALLEGRO_BITMAP *_al_load_png(const char *filename, int flags)
436
436
* Custom write function to use Allegro packfile routines,
437
437
* rather than C streams.
438
438
*/
439
- static void write_data (png_structp png_ptr , png_bytep data , png_uint_32 length )
439
+ static void write_data (png_structp png_ptr , png_bytep data , size_t length )
440
440
{
441
441
ALLEGRO_FILE * f = (ALLEGRO_FILE * )png_get_io_ptr (png_ptr );
442
442
if ((png_uint_32 ) al_fwrite (f , data , length ) != length )
You can’t perform that action at this time.
0 commit comments