diff options
| author | amelia squires <[email protected]> | 2025-02-24 13:23:19 -0600 |
|---|---|---|
| committer | amelia squires <[email protected]> | 2025-02-24 13:23:19 -0600 |
| commit | 059503257523bf24b31f7f15a8a5761f2e5f2313 (patch) | |
| tree | 88af046d5ea16489cc045a222b4a520e557aa5b0 /src/crypto.h | |
| parent | 89a7743c1c6dbfe57c70b15ec948ade582925d3e (diff) | |
error handling and parse_url on srequest
Diffstat (limited to 'src/crypto.h')
| -rw-r--r-- | src/crypto.h | 3 |
1 files changed, 1 insertions, 2 deletions
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);\
|
