X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Finternal%2Fimaging%2Fcommon%2Floader-bmp.cpp;h=08df18cba063fa657050fb29f2c4b7e2977e1eaf;hb=refs%2Ftags%2Faccepted%2Ftizen%2F7.0%2Funified%2F20230327.042626;hp=05d051801117621f4d58644cca86a4d87975e333;hpb=b78a1729d3c1660da6e45298c36a2f007150af7a;p=platform%2Fcore%2Fuifw%2Fdali-adaptor.git 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];