Skip to content

Commit 9146ca6

Browse files
committed
Test the 4 unsigned integers separately. No UnsignedInteger.
1 parent f54a801 commit 9146ca6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/library/scala/runtime/BoxesRunTime.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,8 @@ public static boolean equals2(Object x, Object y) {
129129
return equalsNumObject((java.lang.Number)x, y);
130130
if (x instanceof java.lang.Character)
131131
return equalsCharObject((java.lang.Character)x, y);
132-
if (x instanceof scala.runtime.UnsignedInteger)
132+
if (x instanceof scala.UInt || x instanceof scala.ULong ||
133+
x instanceof scala.UByte || x instanceof scala.UShort)
133134
return equalsUNumObject(x, y);
134135
if (y instanceof scala.math.ScalaNumber)
135136
return y.equals(x);

0 commit comments

Comments
 (0)