On Wednesday, December 5, 2018 at 11:36:32 AM UTC-5, Michel Levieux wrote:
>
> which I assume works pretty well. But if I do the same in a test main and 
> try to 'go run' it, with this line :
>
> const v = 1 << 64 - 1
>>
>>
> I get the following error :
>
> ./testmain.go:8:13: constant 18446744073709551615 overflows int
>>
>
>
The const declaration is fine, what statement is at ./testmain.go:8:13? 
Chances are you're trying to implicitly convert `v` to an `int`.
See https://play.golang.org/p/7vtQSrU4o4o

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to