From 8ec1f4cdcbb69e74e59d32c7fd101d70a9b9629c Mon Sep 17 00:00:00 2001 From: Changyeon Lee Date: Mon, 7 Nov 2022 14:04:40 +0900 Subject: [PATCH] Fix multiplication with signed and unsigned Change-Id: Ic6cb0da10136186c09677f9f6fe4fd436dfac382 --- haltests/src/tc_tdm_layer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/haltests/src/tc_tdm_layer.cpp b/haltests/src/tc_tdm_layer.cpp index 68045a1..34596e9 100644 --- a/haltests/src/tc_tdm_layer.cpp +++ b/haltests/src/tc_tdm_layer.cpp @@ -572,8 +572,8 @@ TEST_P(TDMLayer, LayerGetZpos) continue; EXPECT_TRUE(zpos >= 0); EXPECT_TRUE(pipe < (unsigned int)output_count); - EXPECT_TRUE(*(check_table + pipe * layer_count + zpos) == false); - *(check_table + pipe * layer_count + zpos) = true; + EXPECT_TRUE(*(check_table + pipe * (unsigned int)layer_count + (unsigned int)zpos) == false); + *(check_table + pipe * (unsigned int)layer_count + (unsigned int)zpos) = true; } free(check_table); -- 2.7.4