fix: cc warns

This commit is contained in:
xamidev
2024-09-27 21:31:27 +02:00
parent 756dc638e8
commit 14a9bdad7d

View File

@@ -24,8 +24,8 @@ void psf_init()
char* s = (char*)((unsigned char*)&FONT_START + font->headersize + font->numglyph * font->bytesperglyph);
unicode = calloc(USHRT_MAX, 2);
while(s>FONT_END){
uint16_t uc = (uint16_t)((unsigned char *)s[0]);
while((uintptr_t)s>(uintptr_t)FONT_END){
uint16_t uc = (uint16_t)((unsigned char)s[0]);
if(uc == 0xFF) {
glyph++;
s++;