fix: cc warns
This commit is contained in:
@@ -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++;
|
||||||
|
|||||||
Reference in New Issue
Block a user