Skip to content

Commit

Permalink
change computation of typebounds (#801)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcp19 authored Nov 28, 2024
1 parent 71dc28a commit 6fa3dd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/scala/viper/gobra/util/TypeBounds.scala
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ object TypeBounds {
}

sealed trait Unsigned extends BoundedIntegerKind {
override lazy val upper: BigInt = BigInt(pow(2, nbits).toLong - 1)
override lazy val upper: BigInt = BigInt(2).pow(nbits) - 1
override lazy val lower: BigInt = BigInt(0)
}

Expand Down

0 comments on commit 6fa3dd7

Please sign in to comment.