mirror of https://bitbucket.org/ausocean/av.git
Merged in fix-overflow (pull request #274)
protocol/rtcp/parse_test.go: fix overflow on 32bit systems
This commit is contained in:
commit
79ddea32c0
|
@ -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))
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue