diff options
author | Jean-Philippe Bernardy <jeanphilippe.bernardy@gmail.com> | 2005-01-22 15:16:52 +0000 |
---|---|---|
committer | Jean-Philippe Bernardy <jeanphilippe.bernardy@gmail.com> | 2005-01-22 15:16:52 +0000 |
commit | b3fd63747da4f091d140794c557d0fc0073294ed (patch) | |
tree | ddef56ec56e8165b8424a87870e1d245a24c2820 /firmware | |
parent | 93f917f5412cd7717a3fde149ca81aa1b9e3615e (diff) |
long policy
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5632 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/font.c | 7 |
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); } |