From b8c10dac99316974d142c530356ad5cd8fdf9afa Mon Sep 17 00:00:00 2001 From: ame Date: Fri, 5 Apr 2024 22:15:55 -0500 Subject: + + final fixes --- src/hash/pjw.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/hash/pjw.c') 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); -- cgit v1.2.3