2dlib: Fix integer signedness missmatch in comparison in font.cpp

This commit is contained in:
Sebastian Holtermann 2024-10-30 14:26:25 +01:00
parent 10dae4d65b
commit e122a16804

View File

@ -168,15 +168,12 @@ inline int READ_FONT_DATA(FONTFILE ffile, void *buf, int size, int nelem) {
}
inline FONTFILE OPEN_FONT(const char *filename, bool &success) {
FONTFILE fp;
int file_id;
success = false;
fp = (FONTFILE)cfopen(filename, "rb");
FONTFILE fp = (FONTFILE)cfopen(filename, "rb");
if (!fp)
return NULL;
file_id = READ_FONT_INT(fp);
uint32_t file_id = READ_FONT_INT(fp);
if (file_id != 0xfeedbaba)
return (FONTFILE)(-1);