From 9789acc3e04a8cd23fe0a2359a0fb8801ee7255e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nils=20Wallm=C3=A9nius?= Date: Sat, 30 Jun 2007 18:09:46 +0000 Subject: [PATCH] Fix yellow git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13744 a1c6a512-1295-4272-9138-f99709370657 --- firmware/font.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/firmware/font.c b/firmware/font.c index cf4a16a517..b7da31b536 100644 --- a/firmware/font.c +++ b/firmware/font.c @@ -166,12 +166,12 @@ static struct font* font_load_in_memory(struct font* pf) if ( pf->bits_size < 0xFFDB ) { /* pad to 16-bit boundary */ - fileptr = (unsigned char *)(((int32_t)fileptr + 1) & ~1); + fileptr = (unsigned char *)(((intptr_t)fileptr + 1) & ~1); } else { /* pad to 32-bit boundary*/ - fileptr = (unsigned char *)(((int32_t)fileptr + 3) & ~3); + fileptr = (unsigned char *)(((intptr_t)fileptr + 3) & ~3); } if (noffset) @@ -246,13 +246,13 @@ static struct font* font_load_cached(struct font* pf) { long_offset = 0; /* pad to 16-bit boundary */ - fileptr = (unsigned char *)(((int32_t)fileptr + 1) & ~1); + fileptr = (unsigned char *)(((intptr_t)fileptr + 1) & ~1); } else { long_offset = 1; /* pad to 32-bit boundary*/ - fileptr = (unsigned char *)(((int32_t)fileptr + 3) & ~3); + fileptr = (unsigned char *)(((intptr_t)fileptr + 3) & ~3); } if (noffset)