Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The maximum value for an int type #1

Open
awissu opened this issue Apr 2, 2016 · 1 comment
Open

The maximum value for an int type #1

awissu opened this issue Apr 2, 2016 · 1 comment

Comments

@awissu
Copy link

awissu commented Apr 2, 2016

Hi!
The following program crashes on x86 architecture:

[   52s] /usr/lib/go/pkg/tool/linux_386/compile -o $WORK/github.com/siddontang/rdb/_test/github.com/siddontang/rdb.a -trimpath $WORK -p github.com/siddontang/rdb -complete -buildid 6a3ff0e70084e531a19e0c3ce82009829aabc8b0 -D _/home/abuild/rpmbuild/BUILD/go/src/github.com/siddontang/rdb -I $WORK -I /usr/lib/go/contrib/pkg/linux_386 -pack ./decode.go ./digest.go ./encode.go ./loader.go ./reader.go ./loader_test.go ./rdb_test.go
[   53s] # github.com/siddontang/rdb
[   53s] ../go/src/github.com/siddontang/rdb/loader_test.go:82: constant 2147483648 overflows int
[   53s] ../go/src/github.com/siddontang/rdb/loader_test.go:82: constant 4294967295 overflows int
[   53s] ../go/src/github.com/siddontang/rdb/loader_test.go:82: constant 4294967296 overflows int
[   53s] $WORK/github.com/siddontang/rdb/_test/rdb.test
[   53s] [ERROR]Go command failed! Please check.

See: https://build.opensuse.org/package/live_build_log/home:awissu:branches:devel:languages:go/golang-github-siddontang-rdb/openSUSE_Tumbleweed/i586

@siddontang
Copy link
Owner

Seem that you use a 32 bit system, not 64.
I have no 32 bit environment, maybe you can send me an PR, I have no time to support it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants