diff options
| author | ame <[email protected]> | 2024-03-08 14:14:39 -0600 |
|---|---|---|
| committer | ame <[email protected]> | 2024-03-08 14:14:39 -0600 |
| commit | 652146a3a4780ede6cc99ae56871f8f6bb506284 (patch) | |
| tree | 0aae88a063da581c90b2eec987c77a53dda986ef /src/hash/cityhash.c | |
| parent | 935cd9eed5863614dbb2c677c95aee73753e611f (diff) | |
fixed hashes and net stuff
Diffstat (limited to 'src/hash/cityhash.c')
| -rw-r--r-- | src/hash/cityhash.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/hash/cityhash.c b/src/hash/cityhash.c index 46bb1ed..f32453d 100644 --- a/src/hash/cityhash.c +++ b/src/hash/cityhash.c @@ -411,7 +411,7 @@ int l_cityhash64(lua_State* L){ char digest[64]; uint64_t u = cityhash64(a, len); - sprintf(digest,"%016lx",u); + sprintf(digest,"%016llx",u); lua_pushstring(L, digest); return 1; } @@ -424,7 +424,7 @@ int l_cityhash128(lua_State* L){ uint64_t u1, u2; cityhash128(a, len, &u1, &u2); - sprintf(digest,"%08lx%08lx",u1, u2); + sprintf(digest,"%08llx%08llx",u1, u2); lua_pushstring(L, digest); return 1; } |
