Fix multiplication with signed and unsigned 03/283903/1
authorChangyeon Lee <cyeon.lee@samsung.com>
Mon, 7 Nov 2022 05:04:40 +0000 (14:04 +0900)
committerChangyeon Lee <cyeon.lee@samsung.com>
Mon, 7 Nov 2022 05:04:40 +0000 (14:04 +0900)
Change-Id: Ic6cb0da10136186c09677f9f6fe4fd436dfac382

haltests/src/tc_tdm_layer.cpp

index 68045a1..34596e9 100644 (file)
@@ -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);