summaryrefslogtreecommitdiff
path: root/firmware/font.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/font.c')
-rw-r--r--firmware/font.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/firmware/font.c b/firmware/font.c
index e8d5db46b9..d45c0e803f 100644
--- a/firmware/font.c
+++ b/firmware/font.c
@@ -172,12 +172,12 @@ struct font* font_load_in_memory(struct font* pf)
172 if ( pf->bits_size < 0xFFDB ) 172 if ( pf->bits_size < 0xFFDB )
173 { 173 {
174 /* pad to 16-bit boundary */ 174 /* pad to 16-bit boundary */
175 fileptr = (unsigned char *)(((int)fileptr + 1) & ~1); 175 fileptr = (unsigned char *)(((long)fileptr + 1) & ~1);
176 } 176 }
177 else 177 else
178 { 178 {
179 /* pad to 32-bit boundary*/ 179 /* pad to 32-bit boundary*/
180 fileptr = (unsigned char *)(((int)fileptr + 3) & ~3); 180 fileptr = (unsigned char *)(((long)fileptr + 3) & ~3);
181 } 181 }
182 182
183 if (noffset) 183 if (noffset)
@@ -247,13 +247,13 @@ struct font* font_load_cached(struct font* pf)
247 { 247 {
248 long_offset = 0; 248 long_offset = 0;
249 /* pad to 16-bit boundary */ 249 /* pad to 16-bit boundary */
250 fileptr = (unsigned char *)(((int)fileptr + 1) & ~1); 250 fileptr = (unsigned char *)(((long)fileptr + 1) & ~1);
251 } 251 }
252 else 252 else
253 { 253 {
254 long_offset = 1; 254 long_offset = 1;
255 /* pad to 32-bit boundary*/ 255 /* pad to 32-bit boundary*/
256 fileptr = (unsigned char *)(((int)fileptr + 3) & ~3); 256 fileptr = (unsigned char *)(((long)fileptr + 3) & ~3);
257 } 257 }
258 258
259 if (noffset) 259 if (noffset)