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); char* s = (char*)((unsigned char*)&FONT_START + font->headersize + font->numglyph * font->bytesperglyph);
unicode = calloc(USHRT_MAX, 2); unicode = calloc(USHRT_MAX, 2);
while(s>FONT_END){ while((uintptr_t)s>(uintptr_t)FONT_END){
uint16_t uc = (uint16_t)((unsigned char *)s[0]); uint16_t uc = (uint16_t)((unsigned char)s[0]);
if(uc == 0xFF) { if(uc == 0xFF) {
glyph++; glyph++;
s++; s++;