From 2b352b57524ab774616d79108d57c2cf5797cc9e Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Fri, 27 Mar 2009 01:24:32 +0000 Subject: Squash warnings svn path=/trunk/netsurf/; revision=6911 --- riscos/thumbnail.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'riscos/thumbnail.c') diff --git a/riscos/thumbnail.c b/riscos/thumbnail.c index 244c6268f..2fb5212e3 100644 --- a/riscos/thumbnail.c +++ b/riscos/thumbnail.c @@ -101,7 +101,7 @@ bool thumbnail_create(struct content *content, struct bitmap *bitmap, return false; sprite_header = (osspriteop_header *)(sprite_area + 1); } else { - char *pixbufp = bitmap_get_buffer(bitmap); + const uint8_t *pixbufp = bitmap_get_buffer(bitmap); if (!pixbufp || !bitmap->sprite_area) return false; sprite_area = bitmap->sprite_area; @@ -135,7 +135,7 @@ bool thumbnail_create(struct content *content, struct bitmap *bitmap, /* if we changed to 8bpp then go back to 32bpp */ if (thumbnail_32bpp_available != 1) { - char *pixbufp = bitmap_get_buffer(bitmap); + const uint8_t *pixbufp = bitmap_get_buffer(bitmap); if (!pixbufp || !bitmap->sprite_area) { free(sprite_area); return false; @@ -189,7 +189,8 @@ osspriteop_area *thumbnail_convert_8bpp(struct bitmap *bitmap) if (sprite_header->image != sprite_header->mask) { /* build the sprite mask from the alpha channel */ - unsigned *dp = (unsigned*)bitmap_get_buffer(bitmap); + void *buf = bitmap_get_buffer(bitmap); + unsigned *dp = (unsigned *) buf; if (!dp) return sprite_area; int w = bitmap_get_width(bitmap); -- cgit v1.2.3