mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
Prefer C++ constructs to C-style sizeof-based macros
This commit is contained in:
@@ -528,7 +528,7 @@ void obj_ReadFile(char const *fileName, unsigned int fileID) {
|
||||
int matchedElems;
|
||||
|
||||
if (fscanf(file, RGBDS_OBJECT_VERSION_STRING "%n", &matchedElems) == 1
|
||||
&& matchedElems != QUOTEDSTRLEN(RGBDS_OBJECT_VERSION_STRING))
|
||||
&& matchedElems != literal_strlen(RGBDS_OBJECT_VERSION_STRING))
|
||||
errx("%s: Not a RGBDS object file", fileName);
|
||||
|
||||
verbosePrint("Reading object file %s\n", fileName);
|
||||
|
||||
Reference in New Issue
Block a user