You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
math/big package no longer has a bitLen low-level function,
so it can be removed.
In Go 1.9, the type of big.Word has changed from uintptr
to uint. Due to issue #652 with uint multiplication with
overflows, we use a workaround of overriding type of Word
back to uintptr. This should be undone once #652 is fixed.
Fixes:
$ gopherjs test --short math/big
$GOROOT/src/math/big/big.go:39:9: undeclared name: bitLen_g
math/big package no longer has a bitLen low-level function,
so it can be removed.
In Go 1.9, the type of big.Word has changed from uintptr
to uint. Due to issue #652 with uint multiplication with
overflows, we use a workaround of overriding type of Word
back to uintptr. This should be undone once #652 is fixed.
Fixes:
$ gopherjs test --short math/big
$GOROOT/src/math/big/big.go:39:9: undeclared name: bitLen_g
This might affect
int
type too, I haven't verified.It does not affect
uintptr
, noruint32
.https://play.golang.org/p/gY-qQ51AyZ
https://gopherjs.github.io/playground/#/gY-qQ51AyZ
/cc @neelance
I found this because
math/big
changed type ofbig.Word
fromuintptr
in Go 1.8 touint
in Go 1.9, and it broke the majority of its tests.The text was updated successfully, but these errors were encountered: