Merged in fix-overflow (pull request #274)

protocol/rtcp/parse_test.go: fix overflow on 32bit systems
This commit is contained in:
Saxon Milton 2019-11-09 10:28:41 +00:00
commit 79ddea32c0
1 changed files with 2 additions and 2 deletions

View File

@ -52,10 +52,10 @@ func TestTimestamp(t *testing.T) {
}
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 {
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))
}
}