Skip to content

Commit 40833b2

Browse files
committed
fixes types in stub
1 parent 43f65f2 commit 40833b2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/resources/stubs/strconv/atoi.gobra

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,11 @@ pure func (e *NumError) Unwrap() error { return e.Err }
4242

4343
// a to the power of b
4444
ghost
45+
requires base == 0 || (2 <= base && base <= 36)
4546
requires exp >= 0
4647
ensures res == (exp == 0 ? 1 : (base * Exp(base, exp - 1)))
4748
decreases exp
48-
pure func Exp(base int, exp int) (res int) {
49+
pure func Exp(base uint64, exp int) (res uint64) {
4950
return exp == 0 ? 1 : (base * Exp(base, exp - 1))
5051
}
5152

0 commit comments

Comments
 (0)