mirror of
https://github.com/kevinbentley/Descent3.git
synced 2025-01-22 11:28:56 +00:00
2dlib: Fix integer signedness missmatch in comparison in font.cpp
This commit is contained in:
parent
10dae4d65b
commit
e122a16804
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user