diff options
author | Riccardo Spagni <ric@spagni.net> | 2015-08-24 19:21:02 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2015-08-24 19:21:04 +0200 |
commit | 6b7be9f89b17e353beee41015186076a848dab60 (patch) | |
tree | ae4d2fd8af816d038951ea33fa441b034d5d3a38 /src/crypto/groestl.c | |
parent | Merge pull request #381 (diff) | |
parent | use correct unsigned type (diff) | |
download | monero-6b7be9f89b17e353beee41015186076a848dab60.tar.xz |
Merge pull request #383
3b5330e use correct unsigned type (roman)
59cc92b removed some gcc warnings. mainly unused variables. (roman)
Diffstat (limited to 'src/crypto/groestl.c')
-rw-r--r-- | src/crypto/groestl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/crypto/groestl.c b/src/crypto/groestl.c index e1c89cc3b..c8258add3 100644 --- a/src/crypto/groestl.c +++ b/src/crypto/groestl.c @@ -8,6 +8,7 @@ * */ +#include <stddef.h> #include "groestl.h" #include "groestl_tables.h" @@ -204,10 +205,9 @@ static void OutputTransformation(hashState *ctx) { /* initialise context */ static void Init(hashState* ctx) { - int i = 0; /* allocate memory for state and data buffer */ - for(;i<(SIZE512/sizeof(uint32_t));i++) + for(size_t i = 0; i < (SIZE512/sizeof(uint32_t)); i++) { ctx->chaining[i] = 0; } |