diff options
author | Nils Wallménius <nils@rockbox.org> | 2007-06-30 18:09:46 +0000 |
---|---|---|
committer | Nils Wallménius <nils@rockbox.org> | 2007-06-30 18:09:46 +0000 |
commit | 9789acc3e04a8cd23fe0a2359a0fb8801ee7255e (patch) | |
tree | e23089436b2b76a384f3ed6eae745eb2416fd594 /firmware/font.c | |
parent | df155c85778d1294b9e030929bfcd210fd8bc165 (diff) | |
download | rockbox-9789acc3e04a8cd23fe0a2359a0fb8801ee7255e.tar.gz rockbox-9789acc3e04a8cd23fe0a2359a0fb8801ee7255e.zip |
Fix yellow
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13744 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/font.c')
-rw-r--r-- | firmware/font.c | 8 |
1 files 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) |