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 | 8c46301da70740ee40f707e88dd170243c6dd46a (patch) | |
| tree | 88af046d5ea16489cc045a222b4a520e557aa5b0 /src/crypto.h | |
| parent | f1a92a07efbc0dd17758500b2c91ca8ddbdeabca (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);\
|
