diff options
| author | ame <[email protected]> | 2024-04-05 22:15:55 -0500 |
|---|---|---|
| committer | ame <[email protected]> | 2024-04-05 22:15:55 -0500 |
| commit | b8c10dac99316974d142c530356ad5cd8fdf9afa (patch) | |
| tree | b91c803a9a3ed3b391166684f0ac940c44977f17 /src/hash/pjw.c | |
| parent | 18657b5d226f5fe20ea049308b5078fd188ae96c (diff) | |
+ + final fixes
Diffstat (limited to 'src/hash/pjw.c')
| -rw-r--r-- | src/hash/pjw.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/hash/pjw.c b/src/hash/pjw.c index 5dea872..ce2c38c 100644 --- a/src/hash/pjw.c +++ b/src/hash/pjw.c @@ -30,10 +30,7 @@ uint32_t pjw(uint8_t* in, size_t len){ common_hash_init_update(pjw); int l_pjw_final(lua_State* L){ - lua_pushstring(L, "ud"); - lua_gettable(L, 1); - - struct pjw_hash* a = (struct pjw_hash*)lua_touserdata(L, -1); + struct pjw_hash* a = (struct pjw_hash*)lua_touserdata(L, 1); uint32_t u = pjw_final(a); char digest[32]; sprintf(digest,"%08x",u); |
