Skip to content

Commit

Permalink
Fix build error on 32-bit platform
Browse files Browse the repository at this point in the history
Prevent math.MaxUint64 from being used on 32-bit platform
  • Loading branch information
enobufs committed Jan 7, 2024
1 parent 7031ef6 commit c276e74
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion codecs/av1/obu/leb128_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"})
}

Expand Down

0 comments on commit c276e74

Please sign in to comment.