From: James Zern Date: Sat, 12 Nov 2016 20:59:34 +0000 (-0800) Subject: partial_idct_test: use for int16_min/max X-Git-Tag: v1.6.1~92^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2218a4c292f779df94be66ce7270b94a619c5785;p=libvpx partial_idct_test: use for int16_min/max this removes the need for __STDC_LIMIT_MACROS which is defined in vpx_integer.h, but may be preceded by earlier includes of stdint.h; fixes build with the r13 ndk Change-Id: I3950c8837cf90d5584a20ce370ae370581c2182c --- diff --git a/test/partial_idct_test.cc b/test/partial_idct_test.cc index bc214ad89..b31b82f44 100644 --- a/test/partial_idct_test.cc +++ b/test/partial_idct_test.cc @@ -12,6 +12,8 @@ #include #include +#include + #include "third_party/googletest/src/include/gtest/gtest.h" #include "./vp9_rtcd.h" @@ -45,7 +47,7 @@ int16_t MaxSupportedCoeff(InvTxfmFunc a) { #else (void)a; #endif - return INT16_MAX; + return std::numeric_limits::max(); } int16_t MinSupportedCoeff(InvTxfmFunc a) { @@ -57,11 +59,11 @@ int16_t MinSupportedCoeff(InvTxfmFunc a) { } #elif HAVE_NEON if (a == vpx_idct4x4_16_add_neon) { - return INT16_MIN + 1; + return std::numeric_limits::min() + 1; } #endif #endif // !CONFIG_EMULATE_HARDWARE - return INT16_MIN; + return std::numeric_limits::min(); } class PartialIDctTest : public ::testing::TestWithParam {