Skip to content

Commit 6b9d5d3

Browse files
committed
fixed integer literal related issue in integer range check test
1 parent 919ab70 commit 6b9d5d3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

msgpack-core/src/test/scala/org/msgpack/value/ValueTest.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,10 +120,10 @@ class ValueTest extends MessagePackSpec
120120
newInteger(Short.MIN_VALUE-1).asShort()
121121
}
122122
intercept[MessageIntegerOverflowException] {
123-
newInteger(Integer.MAX_VALUE+1).asInt()
123+
newInteger(Integer.MAX_VALUE+1.toLong).asInt()
124124
}
125125
intercept[MessageIntegerOverflowException] {
126-
newInteger(Integer.MIN_VALUE-1).asInt()
126+
newInteger(Integer.MIN_VALUE-1.toLong).asInt()
127127
}
128128
}
129129
}

0 commit comments

Comments
 (0)