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; }