Package: golang-github-labstack-gommon / 0.2.6-2
Metadata
Package | Version | Patches format |
---|---|---|
golang-github-labstack-gommon | 0.2.6-2 | 3.0 (quilt) |
Patch series
view the series filePatch | File delta | Description |
---|---|---|
PR 38.patch | (download) |
bytes/bytes_test.go |
8 4 + 4 - 0 ! |
[patch] 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 |
1