summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--firmware/font.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/font.c b/firmware/font.c
index cb1ade0e76..37c082f583 100644
--- a/firmware/font.c
+++ b/firmware/font.c
@@ -177,7 +177,7 @@ struct font* font_load(const char *path)
177 fileptr += nbits*sizeof(unsigned char); 177 fileptr += nbits*sizeof(unsigned char);
178 178
179 /* pad to 16 bit boundary*/ 179 /* pad to 16 bit boundary*/
180 fileptr = (unsigned char *)(((int)fileptr + 1) & ~1); 180 fileptr = (unsigned char *)(((long)fileptr + 1) & ~1);
181 181
182 if (noffset) { 182 if (noffset) {
183 pf->offset = (unsigned short *)fileptr; 183 pf->offset = (unsigned short *)fileptr;