isn't letting me type in constants that are supposed to be "negative", and it's getting really annoying. I'll type in 0x8000000F (in this case) for an int32, and it is like MaN tHis is JUst tOo LarGe and I'm like :|

golemwire@dr-topcue:~/Projects/CPUs/SubSky/Tests
: go run monofieldfloat.go
# command-line-arguments
./monofieldfloat.go:92:17: 0x8000000F (untyped int constant 2147483663) overflows int32

Show thread
Follow

Ah OK, from `go doc -all math`:
MinInt32 = -1 << 31 // -2147483648
OK. Annoying that I can't just enter what I want, but oh well.
(I still love this programming language :) )

Sign in to participate in the conversation
Librem Social

Librem Social is an opt-in public network. Messages are shared under Creative Commons BY-SA 4.0 license terms. Policy.

Stay safe. Please abide by our code of conduct.

(Source code)

image/svg+xml Librem Chat image/svg+xml