1
0
Fork 0
forked from len0rd/rockbox

Fix yellow

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13744 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Nils Wallménius 2007-06-30 18:09:46 +00:00
parent df155c8577
commit 9789acc3e0

View file

@ -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)