opened
eclipseo
username_0
Golang 1.12.6 on i686 and armv7:
```
Testing    in: /builddir/build/BUILD/zerolog-1.14.3/_build/src
         PATH: /builddir/build/BUILD/zerolog-1.14.3/_build/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin
       GOPATH: /builddir/build/BUILD/zerolog-1.14.3/_build:/usr/share/gocode
  GO111MODULE: off
      command: go test -buildmode pie -compiler gc -ldflags "-X github.com/username_3/zerolog/veusername_3ion=1.14.3 -extldflags '-Wl,-z,relro -Wl,--as-needed  -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld '"
      testing: github.com/username_3/zerolog
github.com/username_3/zerolog
PASS
ok  	github.com/username_3/zerolog	0.033s
github.com/username_3/zerolog/hlog
PASS
ok  	github.com/username_3/zerolog/hlog	0.024s
github.com/username_3/zerolog/internal/cbor
FAIL	github.com/username_3/zerolog/internal/cbor [build failed]
BUILDSTDERR: # github.com/username_3/zerolog/internal/cbor [github.com/username_3/zerolog/internal/cbor.test]
BUILDSTDERR: ./types_test.go:91:3: constant 4294967294 overflows int
BUILDSTDERR: ./types_test.go:94:3: constant 3022355601293312 overflows int
BUILDSTDERR: ./types_test.go:95:3: constant 1000000000000 overflows int
BUILDSTDERR: ./types_test.go:119:3: constant -4294967294 overflows int
BUILDSTDERR: ./types_test.go:122:3: constant -3022355601293313 overflows int
BUILDSTDERR: ./types_test.go:123:3: constant -1000000000001 overflows int
```
Int overflow on 32 bits arches
issue
created
toravir
username_1
@username_0 how do i recreate this ? i don't have an armv7 or i686 machine.. can u provide steps to create a 32-bit env pls ?
comment
created
jsdidierlaurent
username_2
You can reproduce this issue with:
`GOARCH=386 go test ./...`
comment
created
toravir
username_1
Thanks @username_2  - am able to recreate it - will looking into it and get back in a few days..
comment
closed
rs
username_3
issue