This repository has been archived by the owner on Nov 18, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 171
BUG: uint (i.e. uint32) compared to 1 << 62 #227
Comments
rudolph9
added a commit
to rudolph9/lang-js
that referenced
this issue
Dec 13, 2019
Cue release v0.0.15 with a small work around for an overflow error see cuelang/cue#227
Could you try if changing the return type for |
@mpvl If I'm understanding you correctly
Is referring to the argument passed to Which results in an error:
https://golang.org/pkg/math/big/#Int.Bit
|
This issue has been migrated to cue-lang/cue#227. For more details about CUE's migration to a new home, please see cue-lang/cue#1078. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I came across this when v0.0.15 wouldn't compile with gopherjs
This check
I've filed an issue with gopherjs since technically it compiles in go but not gopherjs.
But, it seems like an oversight in the cue impl since
i
is a uintuint
from the received context will never be greater than1<<32
and branch based on the conditional would never be executed. I believe it's akin to anif false
branch...Perhaps I am mistaken through and it does serve the intended purpose, if that is the case could we adjust the impl from
to
to work around the bug in gopherjs and help support the npm cuelang package
The text was updated successfully, but these errors were encountered: