Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
jcp19 committed Nov 15, 2024
1 parent fe1daa8 commit 3778e43
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 - 1)
override lazy val lower: BigInt = BigInt(-pow(2, nbits-1).toLong)
override lazy val upper: BigInt = BigInt(pow(2, nbits-1).toLong)
override lazy val lower: BigInt = BigInt(-pow(2, nbits-1).toLong-1)
}

sealed trait Unsigned extends BoundedIntegerKind {
Expand Down

0 comments on commit 3778e43

Please sign in to comment.