From 4cad4e92b1dec96da31e19012b64ff9b60920dd7 Mon Sep 17 00:00:00 2001 From: LoRd_MuldeR Date: Sat, 12 Aug 2017 17:18:41 +0200 Subject: [PATCH] Use "fast" stdint types in a few more places. --- include/mhash_384.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/mhash_384.h b/include/mhash_384.h index d0fb78b..ca38e44 100644 --- a/include/mhash_384.h +++ b/include/mhash_384.h @@ -1339,8 +1339,8 @@ uint8_t MHASH_384_TABLE_MIX[][MHASH_384_LEN] = }; /*Table size constants*/ -static const uint16_t MHASH_384_TSIZE_XOR = (uint16_t)(sizeof(MHASH_384_TABLE_XOR) / sizeof(MHASH_384_TABLE_XOR[0])); -static const uint16_t MHASH_384_TSIZE_MIX = (uint16_t)(sizeof(MHASH_384_TABLE_MIX) / sizeof(MHASH_384_TABLE_MIX[0])); +static const uint_fast16_t MHASH_384_TSIZE_XOR = (uint_fast16_t)(sizeof(MHASH_384_TABLE_XOR) / sizeof(MHASH_384_TABLE_XOR[0])); +static const uint_fast16_t MHASH_384_TSIZE_MIX = (uint_fast16_t)(sizeof(MHASH_384_TABLE_MIX) / sizeof(MHASH_384_TABLE_MIX[0])); /* ======================================================================== */ /* TYPES */ @@ -1349,7 +1349,7 @@ static const uint16_t MHASH_384_TSIZE_MIX = (uint16_t)(sizeof(MHASH_384_TABLE_MI /*Context*/ typedef struct mhash_384_t { - uint16_t rnd, idx; + uint_fast16_t rnd, idx; uint8_t digest[2][MHASH_384_LEN]; } mhash_384_t; -- 2.11.0