This commit is contained in:
libretroadmin 2024-09-05 17:44:47 +02:00
parent a5a15bdd47
commit 9acaca19a6

View File

@ -117,10 +117,10 @@ static void zlib_inflate_stream_free(void *data)
static bool zlib_deflate_define(void *data, const char *prop, uint32_t val)
{
struct zlib_trans_stream *z = (struct zlib_trans_stream*)data;
if (!data)
return false;
struct zlib_trans_stream *z = (struct zlib_trans_stream *) data;
if (string_is_equal(prop, "level"))
z->level = (int) val;
else if (string_is_equal(prop, "window_bits"))
@ -133,10 +133,10 @@ static bool zlib_deflate_define(void *data, const char *prop, uint32_t val)
static bool zlib_inflate_define(void *data, const char *prop, uint32_t val)
{
struct zlib_trans_stream *z = (struct zlib_trans_stream*)data;
if (!data)
return false;
struct zlib_trans_stream *z = (struct zlib_trans_stream *) data;
if (string_is_equal(prop, "window_bits"))
{
z->window_bits = (int) val;