aboutsummaryrefslogtreecommitdiff
path: root/src/hash/metrohash.c
diff options
context:
space:
mode:
authorame <[email protected]>2024-03-08 14:14:39 -0600
committerame <[email protected]>2024-03-08 14:14:39 -0600
commit05ae1fc2fef778138bb3a136340dd923ca9687a0 (patch)
tree0aae88a063da581c90b2eec987c77a53dda986ef /src/hash/metrohash.c
parent580c39bb8d128b4f66d1c5d87a98ab7fb44a686b (diff)
fixed hashes and net stuff
Diffstat (limited to 'src/hash/metrohash.c')
-rw-r--r--src/hash/metrohash.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/hash/metrohash.c b/src/hash/metrohash.c
index 9ce08b3..4e59f81 100644
--- a/src/hash/metrohash.c
+++ b/src/hash/metrohash.c
@@ -174,7 +174,7 @@ int l_metrohash64_v1(lua_State* L){
char digest[64];
uint64_t u = metrohash64(a, len, seed, v1);
- sprintf(digest,"%016lx",u);
+ sprintf(digest,"%016llx",u);
lua_pushstring(L, digest);
return 1;
}
@@ -189,7 +189,7 @@ int l_metrohash64_v2(lua_State* L){
char digest[64];
uint64_t u = metrohash64(a, len, seed, v2);
- sprintf(digest,"%016lx",u);
+ sprintf(digest,"%016llx",u);
lua_pushstring(L, digest);
return 1;
}
@@ -205,7 +205,7 @@ int l_metrohash128_v1(lua_State* L){
uint64_t u1, u2;
metrohash128(a, len, seed, &u1, &u2, v1);
- sprintf(digest,"%016lx%016lx",u1,u2);
+ sprintf(digest,"%016llx%016llx",u1,u2);
lua_pushstring(L, digest);
return 1;
}
@@ -221,7 +221,7 @@ int l_metrohash128_v2(lua_State* L){
uint64_t u1, u2;
metrohash128(a, len, seed, &u1, &u2, v2);
- sprintf(digest,"%016lx%016lx",u1,u2);
+ sprintf(digest,"%016llx%016llx",u1,u2);
lua_pushstring(L, digest);
return 1;
}