aboutsummaryrefslogtreecommitdiff
path: root/src/hash/pearson.c
diff options
context:
space:
mode:
authorame <[email protected]>2024-04-05 22:15:55 -0500
committerame <[email protected]>2024-04-05 22:15:55 -0500
commitb8c10dac99316974d142c530356ad5cd8fdf9afa (patch)
treeb91c803a9a3ed3b391166684f0ac940c44977f17 /src/hash/pearson.c
parent18657b5d226f5fe20ea049308b5078fd188ae96c (diff)
+ + final fixes
Diffstat (limited to 'src/hash/pearson.c')
-rw-r--r--src/hash/pearson.c5
1 files changed, 1 insertions, 4 deletions
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);