From 79acb8b08c22ad15a54f93e66516904fe133232d Mon Sep 17 00:00:00 2001 From: Rob Kendrick Date: Mon, 7 Apr 2008 10:37:21 +0000 Subject: Further fixes for unsigned int being used as an intptr svn path=/trunk/netsurf/; revision=4082 --- image/bmpread.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'image') diff --git a/image/bmpread.c b/image/bmpread.c index 161145b56..7e6a9fefa 100644 --- a/image/bmpread.c +++ b/image/bmpread.c @@ -419,7 +419,7 @@ bmp_result bmp_decode_rgb24(struct bmp_image *bmp, char **start, int bytes) { char *top, *bottom, *end, *data; unsigned int *scanline; unsigned int x, y, swidth, skip; - unsigned int addr; + intptr_t addr; unsigned int i, word; data = *start; @@ -479,7 +479,7 @@ bmp_result bmp_decode_rgb16(struct bmp_image *bmp, char **start, int bytes) { char *top, *bottom, *end, *data; unsigned int *scanline; unsigned int x, y, swidth; - unsigned int addr; + intptr_t addr; unsigned int word, i; data = *start; @@ -538,7 +538,7 @@ bmp_result bmp_decode_rgb16(struct bmp_image *bmp, char **start, int bytes) { bmp_result bmp_decode_rgb(struct bmp_image *bmp, char **start, int bytes) { char *top, *bottom, *end, *data; unsigned int *scanline; - unsigned int addr; + intptr_t addr; unsigned int x, y, swidth; int i; int bit_shifts[8]; @@ -592,7 +592,7 @@ bmp_result bmp_decode_rgb(struct bmp_image *bmp, char **start, int bytes) { bmp_result bmp_decode_mask(struct bmp_image *bmp, char *data, int bytes) { char *top, *bottom, *end; unsigned int *scanline; - unsigned int addr; + intptr_t addr; unsigned int x, y, swidth; int cur_byte = 0; -- cgit v1.2.3