fixed more warnings in rtgui (reported by gcc but not clang)

This commit is contained in:
Alberto Griggio
2017-04-01 16:43:32 +02:00
parent a3561049ed
commit 27e822fdae
14 changed files with 34 additions and 34 deletions

View File

@@ -1478,7 +1478,7 @@ void BackBuffer::copyRGBCharData(const unsigned char *srcData, int srcX, int src
return;
}
for (unsigned int i = 0; i < (unsigned int)(srcH); ++i) {
for (int i = 0; i < srcH; ++i) {
if (dstY + i >= surfH) {
break;
}
@@ -1486,7 +1486,7 @@ void BackBuffer::copyRGBCharData(const unsigned char *srcData, int srcX, int src
src = srcData + i * srcRowStride;
dst = dstData + ((dstY + i) * surfW + dstX) * 4;
for (unsigned int j = 0; j < (unsigned int)(srcW); ++j) {
for (int j = 0; j < srcW; ++j) {
if (dstX + j >= surfW) {
break;
}