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 /halfsiphash.c | |
parent | d/experimental (diff) | |
download | siphash-42d58226998313c627f92af6c31c1f941682debb.tar.gz siphash-42d58226998313c627f92af6c31c1f941682debb.tar.xz |
Use UINTxx_C() macros for 'large' constants
Diffstat (limited to 'halfsiphash.c')
-rw-r--r-- | halfsiphash.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/halfsiphash.c b/halfsiphash.c index d74d3be..773c0fc 100644 --- a/halfsiphash.c +++ b/halfsiphash.c @@ -76,8 +76,8 @@ int halfsiphash(const uint8_t *in, const size_t inlen, const uint8_t *k, assert((outlen == 4) || (outlen == 8)); uint32_t v0 = 0; uint32_t v1 = 0; - uint32_t v2 = 0x6c796765; - uint32_t v3 = 0x74656462; + uint32_t v2 = UINT32_C(0x6c796765); + uint32_t v3 = UINT32_C(0x74656462); uint32_t k0 = U8TO32_LE(k); uint32_t k1 = U8TO32_LE(k + 4); uint32_t m; |