We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e11c42a commit d34c6caCopy full SHA for d34c6ca
1 file changed
acidify-core/src/commonMain/kotlin/org/ntqqrev/acidify/internal/crypto/hash/SHA1Stream.kt
@@ -85,8 +85,9 @@ internal class SHA1Stream {
85
86
fun update(data: ByteArray, len: Int = data.size) {
87
var index = (count[0] ushr 3) and 0x3F
88
+ val old0 = count[0]
89
count[0] += len shl 3
- if (count[0] < (len shl 3)) count[1]++
90
+ if (count[0].toUInt() < old0.toUInt()) count[1]++
91
count[1] += len ushr 29
92
93
val partLen = Sha1BlockSize - index
0 commit comments