commit | f1544c76c2ec76d520c4e2984df9ef2cc394b408 | [log] [tgz] |
---|---|---|
author | Harish Mahendrakar <harish.mahendrakar@ittiam.com> | Thu Apr 30 11:07:21 2020 +0530 |
committer | Pawin Vongmasa <pawin@google.com> | Thu Apr 30 04:40:26 2020 -0700 |
tree | ef443f391fef32da8bacc0d39c01ff126d887eff | |
parent | 669acb12c3092e581a1ecc347e6d573e96c8ca0e [diff] |
C2 VTS: Fix St12out_of_range use stoul instead of stol as the data being converted is unsigned. Bug: 155138755 Test: VtsHalMediaC2V1_0TargetComponentTest Change-Id: I5d7079538b5707c68454fa453667744758c9122a
diff --git a/media/codec2/hidl/1.0/vts/functional/component/VtsHalMediaC2V1_0TargetComponentTest.cpp b/media/codec2/hidl/1.0/vts/functional/component/VtsHalMediaC2V1_0TargetComponentTest.cpp index 119ce14..6122225 100644 --- a/media/codec2/hidl/1.0/vts/functional/component/VtsHalMediaC2V1_0TargetComponentTest.cpp +++ b/media/codec2/hidl/1.0/vts/functional/component/VtsHalMediaC2V1_0TargetComponentTest.cpp
@@ -330,7 +330,7 @@ TEST_P(Codec2ComponentInputTests, InputBufferTest) { description("Tests for different inputs"); - uint32_t flags = std::stol(std::get<2>(GetParam())); + uint32_t flags = std::stoul(std::get<2>(GetParam())); bool isNullBuffer = !std::get<3>(GetParam()).compare("true"); if (isNullBuffer) ALOGD("Testing for null input buffer with flag : %u", flags);