From fc0cd2a4f00628c9d1f7e675e0fed9ed9b32d312 Mon Sep 17 00:00:00 2001 From: Saxon Date: Sat, 9 Nov 2019 20:41:19 +1030 Subject: [PATCH] protocol/rtcp/parse_test.go: fix overflow on 32bit systems --- protocol/rtcp/parse_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/protocol/rtcp/parse_test.go b/protocol/rtcp/parse_test.go index ec63aac2..e6b9e9b2 100644 --- a/protocol/rtcp/parse_test.go +++ b/protocol/rtcp/parse_test.go @@ -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)) } }