diff options
author | Jean-Philippe Aumasson <jeanphilippe.aumasson@gmail.com> | 2019-09-10 07:57:36 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-10 07:57:36 +0200 |
commit | 61faf151b8ee0977f7e8d6389ba24752c1c93a71 (patch) | |
tree | bad2f2acfb508ac2f12f1a7c1bc9cf759cde2a3f /halfsiphash.c | |
parent | Merge pull request #12 from altendky/remove_duplicated_U32TO8_LE (diff) | |
parent | Use UINTxx_C() macros for 'large' constants (diff) | |
download | siphash-61faf151b8ee0977f7e8d6389ba24752c1c93a71.tar.gz siphash-61faf151b8ee0977f7e8d6389ba24752c1c93a71.tar.xz |
Merge pull request #13 from altendky/use_UINTxx_C_macros
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 adfe1d2..689e125 100644 --- a/halfsiphash.c +++ b/halfsiphash.c @@ -70,8 +70,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; |