From: Changyeon Lee Date: Mon, 7 Nov 2022 05:04:40 +0000 (+0900) Subject: Fix multiplication with signed and unsigned X-Git-Tag: accepted/tizen/7.0/unified/20230417.162206~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F75%2F291375%2F1;p=platform%2Fcore%2Fuifw%2Flibtdm.git Fix multiplication with signed and unsigned Change-Id: Ic6cb0da10136186c09677f9f6fe4fd436dfac382 --- 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);