Fixed Issue #35

This commit is contained in:
HaHaWTH 2023-10-01 20:52:59 +08:00
parent e6be595c16
commit 9c3f0b0142

View File

@ -308,7 +308,7 @@ public class Whirlpool extends UnsaltedMethod {
if (bufferRem + sourceBits < 8) {
// all remaining data fits on buffer[bufferPos], and there still
// remains some space.
bufferBits += sourceBits;
bufferBits += (int) sourceBits;
} else {
// buffer[bufferPos] is full:
bufferPos++;