From 4ea81ab1073590d0b5dc9b05325188fd83df2539 Mon Sep 17 00:00:00 2001 From: Joshua Haberman Date: Sat, 17 Oct 2020 16:41:34 -0700 Subject: [PATCH] Fixed pedantic warning. --- upb/bindings/lua/msg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/upb/bindings/lua/msg.c b/upb/bindings/lua/msg.c index df9f009d76..6a2ecb36c7 100644 --- a/upb/bindings/lua/msg.c +++ b/upb/bindings/lua/msg.c @@ -564,8 +564,8 @@ static int lupb_mapiter_next(lua_State *L) { * pairs(map) */ static int lupb_map_pairs(lua_State *L) { - lupb_map_check(L, 1); size_t *iter = lua_newuserdata(L, sizeof(*iter)); + lupb_map_check(L, 1); *iter = UPB_MAP_BEGIN; lua_pushvalue(L, 1);