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/pearson.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/hash/pearson.c') diff --git a/src/hash/pearson.c b/src/hash/pearson.c index 1110891..c5fcf19 100644 --- a/src/hash/pearson.c +++ b/src/hash/pearson.c @@ -62,10 +62,7 @@ int l_setpearson(lua_State* L){ common_hash_init_update(pearson); int l_pearson_final(lua_State* L){ - lua_pushstring(L, "ud"); - lua_gettable(L, 1); - - struct pearson_hash* a = (struct pearson_hash*)lua_touserdata(L, -1); + struct pearson_hash* a = (struct pearson_hash*)lua_touserdata(L, 1); uint8_t u = pearson_final(a); char digest[8]; sprintf(digest,"%x",u); -- cgit v1.2.3