Supress "warning: comparison between signed and unsigned integer expressions" in minui/resources.c and mtdutils/mtdutils.c
This commit is contained in:
parent
7c50645a6c
commit
158d25cae4
@ -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);
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user