diff options
author | Kyle Altendorf <sda@fstab.net> | 2019-09-09 15:35:03 -0400 |
---|---|---|
committer | Kyle Altendorf <sda@fstab.net> | 2019-09-09 15:35:03 -0400 |
commit | 42d58226998313c627f92af6c31c1f941682debb (patch) | |
tree | 55901b35dc027de0cb49bf41e1ca826d72de227a /siphash.c | |
parent | d/experimental (diff) | |
download | siphash-42d58226998313c627f92af6c31c1f941682debb.tar.gz siphash-42d58226998313c627f92af6c31c1f941682debb.tar.xz |
Use UINTxx_C() macros for 'large' constants
Diffstat (limited to 'siphash.c')
-rw-r--r-- | siphash.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -79,10 +79,10 @@ int siphash(const uint8_t *in, const size_t inlen, const uint8_t *k, uint8_t *out, const size_t outlen) { assert((outlen == 8) || (outlen == 16)); - uint64_t v0 = 0x736f6d6570736575ULL; - uint64_t v1 = 0x646f72616e646f6dULL; - uint64_t v2 = 0x6c7967656e657261ULL; - uint64_t v3 = 0x7465646279746573ULL; + uint64_t v0 = UINT64_C(0x736f6d6570736575); + uint64_t v1 = UINT64_C(0x646f72616e646f6d); + uint64_t v2 = UINT64_C(0x6c7967656e657261); + uint64_t v3 = UINT64_C(0x7465646279746573); uint64_t k0 = U8TO64_LE(k); uint64_t k1 = U8TO64_LE(k + 8); uint64_t m; |