diff --git a/codecs/av1/obu/leb128_test.go b/codecs/av1/obu/leb128_test.go index aded8ca..7be26ff 100644 --- a/codecs/av1/obu/leb128_test.go +++ b/codecs/av1/obu/leb128_test.go @@ -59,7 +59,8 @@ func TestWriteToLeb128(t *testing.T) { {0, "00"}, {math.MaxUint32, "ffffffff0f"}, } - if math.MaxInt64 == int(^uint(0)>>1) { + if math.MaxInt32 != ^uint(0) { + // 64-bit platform testVectors = append(testVectors, testVector{math.MaxUint64, "ffffffffffffffffff01"}) }