as / a

A graphical text editor
BSD 3-Clause "New" or "Revised" License
347 stars 25 forks source link

Constant overflows int #42

Closed asampal closed 6 years ago

asampal commented 6 years ago

Not sure this is an issue, but I get the following:

> go get -u -t github.com/as/a
# github.com/as/edit
c:\devenv\projects\_go\src\github.com\as\edit\lex.go:33:21: constant 9223372036854775807 overflows int
as commented 6 years ago

It was an integer overflow, I used a 63 bit shift to denote the largest 64 bit integer. You were using a 32-bit system, and it didn't like that. The issue should be resolved now.

asampal commented 6 years ago

Hmm, I switched to 32 bit Go to try something out a little while ago and had forgotten to switch back. Thanks for reminding me.

as commented 6 years ago

No problem, thanks for reporting the issue. I doubt I would have found this one.