Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ private[kernel] class HashCompat {
rangeDiff = hash - prev
rangeState = 2
case 2 =>
if (rangeDiff != hash - prev) rangeState = 3
if (rangeDiff != hash - prev || rangeDiff == 0) rangeState = 3
case _ =>
}
prev = hash
Expand Down Expand Up @@ -120,7 +120,7 @@ private[kernel] class HashCompat {
while (it.hasNext) {
h = mix(h, prev)
val hash = A.hash(it.next())
if (rangeDiff != hash - prev) {
if (rangeDiff != hash - prev || rangeDiff == 0) {
h = mix(h, hash)
i += 1
while (it.hasNext) {
Expand Down