You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-04-09 05:44:44 -07:00
Fix LodePNG to avoid -Wcast-qual
warnings
<https://github.com/lvandeve/lodepng/issues/160>
This commit is contained in:
@@ -4618,10 +4618,10 @@ static unsigned readChunk_iTXt(LodePNGInfo* info, const LodePNGDecoderSettings*
|
||||
length, &zlibsettings);
|
||||
/*error: compressed text larger than decoder->max_text_size*/
|
||||
if(error && size > zlibsettings.max_output_size) error = 112;
|
||||
if(!error) error = lodepng_add_itext_sized(info, key, langtag, transkey, (char*)str, size);
|
||||
if(!error) error = lodepng_add_itext_sized(info, key, langtag, transkey, (const char*)str, size);
|
||||
lodepng_free(str);
|
||||
} else {
|
||||
error = lodepng_add_itext_sized(info, key, langtag, transkey, (char*)(data + begin), length);
|
||||
error = lodepng_add_itext_sized(info, key, langtag, transkey, (const char*)(data + begin), length);
|
||||
}
|
||||
|
||||
break;
|
||||
|
Reference in New Issue
Block a user