mirror of https://bitbucket.org/ausocean/av.git
protocol/rtcp/parse_test.go: fix overflow on 32bit systems
This commit is contained in:
parent
9e725783be
commit
fc0cd2a4f0
|
@ -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))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue