aboutsummaryrefslogtreecommitdiff
path: root/starlark/int_generic.go
diff options
context:
space:
mode:
authoralandonovan <adonovan@google.com>2020-06-19 10:36:48 -0400
committerGitHub <noreply@github.com>2020-06-19 10:36:48 -0400
commit50ca820fafb940caeda09b96864b9215f8b84c04 (patch)
tree96128b89e91932c14638ca441b54ef1793abee2f /starlark/int_generic.go
parentc6daab680f283fdf16a79c99d8e86a1562400761 (diff)
downloadstarlark-go-50ca820fafb940caeda09b96864b9215f8b84c04.tar.gz
starlark: fix tests for 386 (#283)
The recent int change didn't compile on 386. Fixed. Thanks to user @anyktx for pointing this out. Also, tests of string * int and tuple * int printed a bad error message containing an integer overflow. Now fixed.
Diffstat (limited to 'starlark/int_generic.go')
-rw-r--r--starlark/int_generic.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/starlark/int_generic.go b/starlark/int_generic.go
index a472a4c..70f927f 100644
--- a/starlark/int_generic.go
+++ b/starlark/int_generic.go
@@ -19,7 +19,7 @@ type intImpl struct {
// small is defined only if big is nil.
// small is sign-extended to 64 bits for ease of subsequent arithmetic.
func (i Int) get() (small int64, big *big.Int) {
- return i.small_, i.big_
+ return i.impl.small_, i.impl.big_
}
// Precondition: math.MinInt32 <= x && x <= math.MaxInt32