From: Eunki, Hong Date: Thu, 9 Mar 2023 07:25:00 +0000 (+0900) Subject: [Tizen] Fix to use uint32_t for height index to decodeRGB8 for BMP X-Git-Tag: accepted/tizen/7.0/unified/20230327.042626^0 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-adaptor.git;a=commitdiff_plain;h=dfec66f76e998a20414b1842cffa0e9d7216f34c [Tizen] Fix to use uint32_t for height index to decodeRGB8 for BMP Change-Id: I8b561bf0752a5811b1eec8425676d776a5770545 Signed-off-by: Eunki, Hong --- 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];