diff options
-rw-r--r-- | pym/portage/util/whirlpool.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/portage/util/whirlpool.py b/pym/portage/util/whirlpool.py index 8415e8754..c696f6fc0 100644 --- a/pym/portage/util/whirlpool.py +++ b/pym/portage/util/whirlpool.py @@ -645,7 +645,7 @@ def WhirlpoolAdd(source, sourceBits, ctx): carry = 0 value = sourceBits i = 31 - while i >= 0 and value != 0: + while i >= 0 and (carry != 0 or value != 0): carry += ctx.bitLength[i] + ((value % 0x100000000) & 0xff) ctx.bitLength[i] = carry % 0x100 carry >>= 8 |