Skip to content

feature: add support for 32-bit architectures #302

@gibmat

Description

@gibmat

What version of fxamacker/cbor are you using?

2.3.0

Does this issue reproduce with the latest release?

Yes, this is the latest release

What OS and CPU architecture are you using (go env)?

This was observed in build logs from Debian's buildd instances for i386 and armhf:

What did you do?

Build the library and run the tests on any 32bit system.

What did you expect to see?

All tests pass.

What did you see instead?

github.com/fxamacker/cbor
   dh_auto_test -O--builddirectory=_build -O--buildsystem=golang
	cd _build && go test -vet=off -v -p 160 github.com/fxamacker/cbor
# github.com/fxamacker/cbor [github.com/fxamacker/cbor.test]
src/github.com/fxamacker/cbor/bench_test.go:281:15: constant 18446744073709551615 overflows uint
src/github.com/fxamacker/cbor/bench_test.go:292:3: constant 18446744073709551615 overflows uint
src/github.com/fxamacker/cbor/bench_test.go:303:10: constant 18446744073709551615 overflows uint
src/github.com/fxamacker/cbor/bench_test.go:314:3: constant 18446744073709551615 overflows uint
src/github.com/fxamacker/cbor/bench_test.go:325:7: constant 18446744073709551615 overflows uint
src/github.com/fxamacker/cbor/bench_test.go:336:3: constant 18446744073709551615 overflows uint
src/github.com/fxamacker/cbor/decode_test.go:110:44: constant 1000000000000 overflows uint
src/github.com/fxamacker/cbor/decode_test.go:110:86: constant 1000000000000 overflows int
src/github.com/fxamacker/cbor/decode_test.go:116:51: constant 18446744073709551615 overflows uint
src/github.com/fxamacker/cbor/decode_test.go:3202:29: constant 2147483648 overflows int
src/github.com/fxamacker/cbor/decode_test.go:3202:29: too many errors
FAIL	github.com/fxamacker/cbor [build failed]
FAIL

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestundecidedFinal decision hasn't been made yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions