From 158d25cae4c8cc5009654e112653b5fd21b469e9 Mon Sep 17 00:00:00 2001 From: Antonio Vazquez Date: Sat, 13 Nov 2010 04:51:11 +0800 Subject: [PATCH] Supress "warning: comparison between signed and unsigned integer expressions" in minui/resources.c and mtdutils/mtdutils.c --- minui/resources.c | 4 ++-- mtdutils/mtdutils.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/minui/resources.c b/minui/resources.c index 3d2c727..e055e68 100644 --- a/minui/resources.c +++ b/minui/resources.c @@ -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); } diff --git a/mtdutils/mtdutils.c b/mtdutils/mtdutils.c index 8b71867..2daaa4c 100644 --- a/mtdutils/mtdutils.c +++ b/mtdutils/mtdutils.c @@ -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; }