aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--digest.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/digest.c b/digest.c
index 7ab288d..6a81f80 100644
--- a/digest.c
+++ b/digest.c
@@ -319,7 +319,7 @@ libkeccak_squeezing_phase(register struct libkeccak_state *restrict state, long
long int nn, long int ww, register unsigned char *restrict hashsum)
{
register int_fast64_t v;
- register long int ni = rr / ww;
+ register long int ni = rr / ww + !!(rr % ww);
auto long int olen = state->n;
auto long int i, j = 0;
register long int k;