Supress "warning: comparison between signed and unsigned integer expressions" in minui/resources.c and mtdutils/mtdutils.c

This commit is contained in:
Antonio Vazquez 2010-11-13 04:51:11 +08:00 committed by Koushik Dutta
parent 7c50645a6c
commit 158d25cae4
2 changed files with 3 additions and 3 deletions

View File

@ -125,7 +125,7 @@ int res_create_surface(const char* name, gr_surface* pSurface) {
int y;
if (channels == 3) {
for (y = 0; y < height; ++y) {
for (y = 0; y < (int)height; ++y) {
unsigned char* pRow = pData + y * stride;
png_read_row(png_ptr, pRow, NULL);
@ -144,7 +144,7 @@ int res_create_surface(const char* name, gr_surface* pSurface) {
}
}
} else {
for (y = 0; y < height; ++y) {
for (y = 0; y < (int)height; ++y) {
unsigned char* pRow = pData + y * stride;
png_read_row(png_ptr, pRow, NULL);
}

View File

@ -337,7 +337,7 @@ ssize_t mtd_read_data(MtdReadContext *ctx, char *data, size_t len)
read += ctx->partition->erase_size;
}
if (read >= len) {
if (read >= (int)len) {
return read;
}