Fix multiplication with signed and unsigned
[platform/core/uifw/libtdm.git] / 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);