From 1e1ed3c674a01b6336a570db9bc30a22c2101c34 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Thu, 15 Oct 2015 04:51:45 +0200 Subject: m MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/libkeccak/spec.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libkeccak/spec.h b/src/libkeccak/spec.h index 3faecf2..fe58c08 100644 --- a/src/libkeccak/spec.h +++ b/src/libkeccak/spec.h @@ -173,7 +173,7 @@ static inline int libkeccak_spec_check(const libkeccak_spec_t* restrict spec) { long state_size = spec->capacity + spec->bitrate; - int_fast32_t word_size = (int_fast32_t)(state_size / 25); + int32_t word_size = (int32_t)(state_size / 25); if (spec->bitrate <= 0) return LIBKECCAK_SPEC_ERROR_BITRATE_NONPOSITIVE; if (spec->bitrate % 8) return LIBKECCAK_SPEC_ERROR_BITRATE_MOD_8; if (spec->capacity <= 0) return LIBKECCAK_SPEC_ERROR_CAPACITY_NONPOSITIVE; @@ -184,7 +184,7 @@ int libkeccak_spec_check(const libkeccak_spec_t* restrict spec) if (word_size % 8) return LIBKECCAK_SPEC_ERROR_WORD_MOD_8; /* `(x & -x) != x` assumes two's complement, which of course is always - * satisfied by GCC, however C99 guarantees that `int_fast32_t` exists, + * satisfied by GCC, however C99 guarantees that `int32_t` exists, * and it is basically the same thing as `long int`; with one important * difference: it is guaranteed to use two's complement. */ if ((word_size & -word_size) != word_size) -- cgit v1.2.3-70-g09d2