@@ -118,7 +118,7 @@ static void con_store_char(unsigned char c)
{
const unsigned char *src;
unsigned char *dst;
- int y;
+ unsigned int y;
if (bitmap_width+con_font->width > bitmap_max_width)
con_flush();
@@ -533,7 +533,7 @@ void fb_cleanup(void)
static void fb_dump_cmap(void)
{
- int i;
+ unsigned int i;
Debug("Colormap start = %d len = %d\n", fb_cmap.start, fb_cmap.len);
for (i = 0; i < fb_cmap.len; i++)
@@ -71,7 +71,7 @@ static void image_bw_to_pixmap(const struct image *image, pixel_t *pixmap)
pixel_t black, white;
const unsigned char *src;
pixel_t *dst;
- int i, j, k;
+ unsigned int i, j, k;
black = match_color(&clut_mono[0]);
white = match_color(&clut_mono[1]);
@@ -101,7 +101,7 @@ static void image_lut256_to_pixmap(const struct image *image, pixel_t *pixmap)
rgba_t color;
const unsigned char *src;
pixel_t *dst;
- int i;
+ unsigned int i;
color.a = 65535;
if (image->type == IMAGE_GREY256) {
@@ -135,7 +135,7 @@ static void image_rgb888_to_pixmap(const struct image *image, pixel_t *pixmap)
const unsigned char *src;
pixel_t *dst;
rgba_t color;
- int i;
+ unsigned int i;
src = image->data;
dst = pixmap;
@@ -27,7 +27,7 @@ static enum test_res test004_func(void)
{
const struct image *image;
pixel_t *pixmap;
- int x, y, width, height, i;
+ unsigned int x, y, width, height, i;
image = &penguin;
pixmap = create_pixmap(image);
@@ -23,7 +23,7 @@
static enum test_res test006_func(void)
{
- int i, j;
+ unsigned int i, j;
pixel_t pixels[2];
u32 x0, x1, y0, y1;
@@ -51,7 +51,7 @@ static void increase_level(int *component)
static enum test_res test007_func(void)
{
- int i;
+ unsigned int i;
fill_rect(0, 0, fb_var.xres, fb_var.yres, black_pixel);
for (i = 0; i < red_len; i++)
@@ -27,7 +27,7 @@ static enum test_res test009_func(void)
{
const struct image *image;
pixel_t *pixmap;
- int x, y, width, height;
+ unsigned int x, y, width, height;
image = &penguin;
pixmap = create_pixmap(image);
@@ -24,7 +24,7 @@
static enum test_res test010_func(void)
{
- int i, j;
+ unsigned int i, j;
con_init(&FONT);
con_puts("Hello, world!\n");
@@ -91,7 +91,7 @@ static u32 reverse32(u32 x)
pixel_t *create_component_table(u32 size, u32 offset, int msb_right, u32 bpp)
{
pixel_t *table, pixel;
- int i;
+ unsigned int i;
if (!size)
return NULL;
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org> --- console.c | 2 +- fb.c | 2 +- pixmap.c | 6 +++--- tests/test004.c | 2 +- tests/test006.c | 2 +- tests/test007.c | 2 +- tests/test009.c | 2 +- tests/test010.c | 2 +- visual.c | 2 +- 9 files changed, 11 insertions(+), 11 deletions(-)