summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Philippe Bernardy <jeanphilippe.bernardy@gmail.com>2005-01-22 15:16:52 +0000
committerJean-Philippe Bernardy <jeanphilippe.bernardy@gmail.com>2005-01-22 15:16:52 +0000
commitb3fd63747da4f091d140794c557d0fc0073294ed (patch)
treeddef56ec56e8165b8424a87870e1d245a24c2820
parent93f917f5412cd7717a3fde149ca81aa1b9e3615e (diff)
downloadrockbox-b3fd63747da4f091d140794c557d0fc0073294ed.tar.gz
rockbox-b3fd63747da4f091d140794c557d0fc0073294ed.tar.bz2
rockbox-b3fd63747da4f091d140794c557d0fc0073294ed.zip
long policy
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5632 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--firmware/font.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/firmware/font.c b/firmware/font.c
index 9d46e0d4ce..cb1ade0e76 100644
--- a/firmware/font.c
+++ b/firmware/font.c
@@ -67,14 +67,15 @@ static int readshort(unsigned short *sp)
return (fileptr <= eofptr);
}
-static int readlong(unsigned long *lp)
+static long readlong(unsigned long *lp)
{
unsigned long l;
l = *fileptr++ & 0xff;
l |= *fileptr++ << 8;
- l |= *fileptr++ << 16;
- *lp = (*fileptr++ << 24) | l;
+ l |= ((unsigned long)(*fileptr++)) << 16;
+ l |= ((unsigned long)(*fileptr++)) << 24;
+ *lp = l;
return (fileptr <= eofptr);
}