From: Yaowu Xu Date: Thu, 16 Jun 2016 15:57:29 +0000 (-0700) Subject: Fix ubsan warning: test/datarate_test.cc X-Git-Tag: v1.6.0~51^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0cb7f545ad07e8a1852a05c7b07c4d4e6d4690d3;p=libvpx Fix ubsan warning: test/datarate_test.cc BUG=webm:1219 Change-Id: I48470a885cd64a60636a982cd68165c41a702306 --- diff --git a/test/datarate_test.cc b/test/datarate_test.cc index 3941e16fc..2f1db9c64 100644 --- a/test/datarate_test.cc +++ b/test/datarate_test.cc @@ -90,7 +90,7 @@ class DatarateTestLarge : public ::libvpx_test::EncoderTest, << pkt->data.frame.pts; } - const size_t frame_size_in_bits = pkt->data.frame.sz * 8; + const int64_t frame_size_in_bits = pkt->data.frame.sz * 8; // Subtract from the buffer the bits associated with a played back frame. bits_in_buffer_model_ -= frame_size_in_bits;