Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jcp19 committed Nov 16, 2024
1 parent 3778e43 commit 3f832e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/scala/viper/gobra/util/TypeBounds.scala
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ object TypeBounds {
}

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

sealed trait Unsigned extends BoundedIntegerKind {
Expand Down

0 comments on commit 3f832e2

Please sign in to comment.