exynos9830: Use size of product_layerAttributePriority[0] instead of uint32_t
* Fix: expression does not compute the number of elements in this array; element type is 'const size_t' (aka 'const unsigned long'), not 'uint32_t' (aka 'unsigned int')
Change-Id: Ic5447e1deb3fee89de014afa8094309a9a843ecf
Signed-off-by: Francescodario Cuzzocrea <bosconovic@gmail.com>
diff --git a/exynos9830/libhwc2.1/device/ExynosResourceManagerModule.cpp b/exynos9830/libhwc2.1/device/ExynosResourceManagerModule.cpp
index 8c8a2b4..d90a9e5 100644
--- a/exynos9830/libhwc2.1/device/ExynosResourceManagerModule.cpp
+++ b/exynos9830/libhwc2.1/device/ExynosResourceManagerModule.cpp
@@ -35,9 +35,9 @@
item2->mSharedMPP = item1;
}
- mLayerAttributePriority.resize(sizeof(product_layerAttributePriority)/sizeof(uint32_t));
+ mLayerAttributePriority.resize(sizeof(product_layerAttributePriority)/sizeof(product_layerAttributePriority[0]));
- for (uint32_t i = 0; i < sizeof(product_layerAttributePriority)/sizeof(uint32_t); i++)
+ for (uint32_t i = 0; i < sizeof(product_layerAttributePriority)/sizeof(product_layerAttributePriority[0]); i++)
mLayerAttributePriority.add(product_layerAttributePriority[i]);
}