protocol/rtcp/parse_test.go: fix overflow on 32bit systems

This commit is contained in:
Saxon 2019-11-09 20:41:19 +10:30
parent 9e725783be
commit fc0cd2a4f0
1 changed files with 2 additions and 2 deletions

View File

@ -52,10 +52,10 @@ func TestTimestamp(t *testing.T) {
} }
if ts.Seconds != expectedMSW { if ts.Seconds != expectedMSW {
t.Errorf("most significant word of timestamp is not what's expected. \nGot: %v\n Want: %v\n", ts.Seconds, expectedMSW) t.Errorf("most significant word of timestamp is not what's expected. \nGot: %v\n Want: %v\n", ts.Seconds, int64(expectedMSW))
} }
if ts.Fraction != expectedLSW { if ts.Fraction != expectedLSW {
t.Errorf("least significant word of timestamp is not what's expected. \nGot: %v\n Want: %v\n", ts.Fraction, expectedLSW) t.Errorf("least significant word of timestamp is not what's expected. \nGot: %v\n Want: %v\n", ts.Fraction, int64(expectedLSW))
} }
} }