diff --git a/firmware/font.c b/firmware/font.c index b7da31b536..c58087daa3 100644 --- a/firmware/font.c +++ b/firmware/font.c @@ -306,7 +306,7 @@ struct font* font_load(const char *path) font_reset(); /* currently, font loading replaces earlier font allocation*/ - freeptr = (unsigned char *)(((int)mbuf + 3) & ~3); + freeptr = (unsigned char *)(((intptr_t)mbuf + 3) & ~3); fileptr = freeptr;