Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
do not rely on undefined behaviour in bytes_test.go
8 exbi equals 2^64, therefore it cannot be stored in int64. The tests use the fact that on x86_64 the following expressions holds true: int64(0) - 1 == math.MaxInt64. However, this is not true for other platforms, specifically aarch64, s390x and ppc64le. This commit fixes it by testing the library with 7 exbi. Fixes #37
- Loading branch information