From dfec66f76e998a20414b1842cffa0e9d7216f34c Mon Sep 17 00:00:00 2001 From: "Eunki, Hong" Date: Thu, 9 Mar 2023 16:25:00 +0900 Subject: [PATCH] [Tizen] Fix to use uint32_t for height index to decodeRGB8 for BMP Change-Id: I8b561bf0752a5811b1eec8425676d776a5770545 Signed-off-by: Eunki, Hong --- dali/internal/imaging/common/loader-bmp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dali/internal/imaging/common/loader-bmp.cpp b/dali/internal/imaging/common/loader-bmp.cpp index 05d0518..08df18c 100644 --- a/dali/internal/imaging/common/loader-bmp.cpp +++ b/dali/internal/imaging/common/loader-bmp.cpp @@ -730,7 +730,7 @@ bool DecodeRGB8(FILE* fp, // the data in the file is bottom up, and we store the data top down pixelsPtr = pixels + (((height - 1) - index) * rowStride); } - for(std::uint8_t j = 0; j < width; ++j) + for(std::uint32_t j = 0; j < width; ++j) { ctIndex = colorIndex[width * index + j]; pixelsPtr[3 * j] = colorTable[4 * ctIndex + 2]; -- 2.7.4