1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
|
Description: fix FTBFS on 32-bit platforms
During Debian autobuilds on 32-bit platforms (armhf, i386) we noticed that
one of the expected result hash values, when given as a literal number,
overflows int. This causes the build of the testing code to fail on such
platforms. Explicitly requiring the value to be 64-bit fixes this.
Author: Sascha Steinbiss <satta@debian.org>
Forwarded: https://github.com/gocql/gocql/pull/1008
Last-Update: 2017-10-27
--- a/internal/murmur/murmur_test.go
+++ b/internal/murmur/murmur_test.go
@@ -66,8 +66,8 @@
b.RunParallel(func(pb *testing.PB) {
for pb.Next() {
h1 := Murmur3H1(data)
- if h1 != 7627370222079200297 {
- b.Fatalf("expected %d got %d", 7627370222079200297, h1)
+ if h1 != uint64(7627370222079200297) {
+ b.Fatalf("expected %d got %d", uint64(7627370222079200297), h1)
}
}
})
|