diff options
author | 2023-03-07 04:19:36 +1100 | |
---|---|---|
committer | 2023-03-07 04:19:36 +1100 | |
commit | dc87571a43cc4674a13bbd8ccd1aa837fb8009b3 (patch) | |
tree | 22ba681e87629ca975faadee91039828a5ef6e84 /3rdparty/lua-zlib/lua_zlib.c | |
parent | b5475eb38b8b79a13a0a9e8a6cb68755b84f0c7b (diff) |
3rdparty: Avoid the need for -fpermissive since clang doesn't like it.
I'll try to get some of this upstreamed.
Diffstat (limited to '3rdparty/lua-zlib/lua_zlib.c')
-rw-r--r-- | 3rdparty/lua-zlib/lua_zlib.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/3rdparty/lua-zlib/lua_zlib.c b/3rdparty/lua-zlib/lua_zlib.c index b619258c75f..fd56b127987 100644 --- a/3rdparty/lua-zlib/lua_zlib.c +++ b/3rdparty/lua-zlib/lua_zlib.c @@ -353,8 +353,8 @@ static int lz_checksum(lua_State *L) { } static int lz_checksum_new(lua_State *L, checksum_t checksum, checksum_combine_t combine) { - lua_pushlightuserdata(L, checksum); - lua_pushlightuserdata(L, combine); + lua_pushlightuserdata(L, (void *)checksum); + lua_pushlightuserdata(L, (void *)combine); lua_pushnumber(L, checksum(0L, Z_NULL, 0)); lua_pushnumber(L, 0); lua_pushcclosure(L, lz_checksum, 4); |