Skip to content

Commit b1a96ca

Browse files
committed
WIP: Try to find pjwHash64 that only fit in Long
1 parent 3ddfa3c commit b1a96ca

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

compiler/src/dotty/tools/dotc/core/tasty/TastyPickler.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ class TastyPickler(val rootCls: ClassSymbol) {
8989
h &= ~high
9090
i += 1
9191
}
92+
assert(Int.MinValue.toLong <= h && h <= Int.MaxValue.toLong, "This should fail 50% of the time")
9293
h
9394
}
9495
}

0 commit comments

Comments
 (0)