ref: 08cb7b5c680e747504f0d518e3e96b0b5467792e
parent: ca393c97266a2938c407cc4e151409d77d663de4
author: Johann <[email protected]>
date: Tue Aug 15 04:28:09 EDT 2017
quantize test: quiet overflow warning Promote the result of RandRange to signed Change-Id: I89313cace3bcbe9af96946bef00b6857fc48b128
--- a/test/vp9_quantize_test.cc
+++ b/test/vp9_quantize_test.cc
@@ -210,9 +210,9 @@
// Two random entries
coeff.Set(0);
coeff.TopLeftPixel()[rnd(count)] =
- rnd.RandRange(max_value_ * 2) - max_value_;
+ static_cast<int>(rnd.RandRange(max_value_ * 2)) - max_value_;
coeff.TopLeftPixel()[rnd(count)] =
- rnd.RandRange(max_value_ * 2) - max_value_;
+ static_cast<int>(rnd.RandRange(max_value_ * 2)) - max_value_;
GenerateHelperArrays(&rnd, zbin_ptr_, round_ptr_, quant_ptr_,
quant_shift_ptr_, dequant_ptr_);