From 8c46301da70740ee40f707e88dd170243c6dd46a Mon Sep 17 00:00:00 2001 From: amelia squires Date: Mon, 24 Feb 2025 13:23:19 -0600 Subject: error handling and parse_url on srequest --- src/crypto.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/crypto.h') diff --git a/src/crypto.h b/src/crypto.h index ba97f0c..bfc3b57 100644 --- a/src/crypto.h +++ b/src/crypto.h @@ -93,8 +93,7 @@ int _##luaname##_common_hash(lua_State* L){\ *a = initf;\ int ini = lua_gettop(L);\ lua_newtable(L);\ - lua_setfield(L, LUA_REGISTRYINDEX, lua_topointer(L, ud));\ - lua_getfield(L, LUA_REGISTRYINDEX, lua_topointer(L, ud));\ + luaI_tsetlud(L, LUA_REGISTRYINDEX, "__", lua_topointer(L, ud));\ int i;\ for(i = ud; i != ini; i++) luaI_tsetv(L, ini + 1, lua_topointer(L, i), i);\ lua_common_hash_meta_def(luaname);\ -- cgit v1.2.3