diff options
| author | ame <[email protected]> | 2024-04-08 10:31:23 -0500 |
|---|---|---|
| committer | ame <[email protected]> | 2024-04-08 10:31:23 -0500 |
| commit | 37a4bcc40e52181d9e35663115196534ff2a2442 (patch) | |
| tree | 9c2910b38b02f963e751f9b7a12573b3480bb500 /src/hash/cityhash.c | |
| parent | 7fbafae25ca81e9acb745fd75ef7f1be55ad7d92 (diff) | |
sha256 & sha224
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; } |
