aboutsummaryrefslogtreecommitdiff
path: root/src/hash/metrohash.c
diff options
context:
space:
mode:
authorame <[email protected]>2024-04-05 17:34:39 -0500
committerame <[email protected]>2024-04-05 17:34:39 -0500
commitb51f233bc5e304102a51949db1e235aafe283b8e (patch)
tree25b83526a8c8b057cf9493542fb650ead921d9f3 /src/hash/metrohash.c
parentbf8bd006189776ae360977c19e7096d73586fa50 (diff)
fix warnings
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 f473b95..e015ff0 100644
--- a/src/hash/metrohash.c
+++ b/src/hash/metrohash.c
@@ -169,7 +169,7 @@ int l_metrohash64_v1(lua_State* L){
char digest[64];
uint64_t u = metrohash64(a, len, seed, v1);
- sprintf(digest,"%016llx",u);
+ sprintf(digest,"%016lx",u);
lua_pushstring(L, digest);
return 1;
}
@@ -184,7 +184,7 @@ int l_metrohash64_v2(lua_State* L){
char digest[64];
uint64_t u = metrohash64(a, len, seed, v2);
- sprintf(digest,"%016llx",u);
+ sprintf(digest,"%016lx",u);
lua_pushstring(L, digest);
return 1;
}
@@ -200,7 +200,7 @@ int l_metrohash128_v1(lua_State* L){
uint64_t u1, u2;
metrohash128(a, len, seed, &u1, &u2, v1);
- sprintf(digest,"%016llx%016llx",u1,u2);
+ sprintf(digest,"%016lx%016lx",u1,u2);
lua_pushstring(L, digest);
return 1;
}
@@ -216,7 +216,7 @@ int l_metrohash128_v2(lua_State* L){
uint64_t u1, u2;
metrohash128(a, len, seed, &u1, &u2, v2);
- sprintf(digest,"%016llx%016llx",u1,u2);
+ sprintf(digest,"%016lx%016lx",u1,u2);
lua_pushstring(L, digest);
return 1;
}