Skip to content

Commit

Permalink
backport fix for #230
Browse files Browse the repository at this point in the history
  • Loading branch information
j-mie6 committed Apr 8, 2024
1 parent aec9e5b commit 7669bc7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ private [token] final class SignedInteger(desc: NumericDesc, unsigned: UnsignedI
override def number: Parsley[BigInt] = err.labelIntegerSignedNumber.apply(_number)

override protected [numeric] def bounded[T](number: Parsley[BigInt], bits: Bits, radix: Int, label: (ErrorConfig, Boolean) => LabelWithExplainConfig)
(implicit ev: CanHold[bits.self,T]): Parsley[T] = label(err, false) {
(implicit ev: CanHold[bits.self,T]): Parsley[T] = label(err, true) {
err.filterIntegerOutOfBounds(bits.lowerSigned, bits.upperSigned, radix).collect(number) {
case x if bits.lowerSigned <= x && x <= bits.upperSigned => ev.fromBigInt(x)
}
Expand Down

0 comments on commit 7669bc7

Please sign in to comment.