Skip to content

Commit

Permalink
RGBDS_OBJECT_VERSION_STRING is a literal
Browse files Browse the repository at this point in the history
  • Loading branch information
Rangi42 committed Jan 4, 2025
1 parent 2828ec0 commit cebca02
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/asm/output.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ void out_WriteObject() {
// Also write symbols that weren't written above
sym_ForEach(registerUnregisteredSymbol);

fprintf(file, RGBDS_OBJECT_VERSION_STRING);
fputs(RGBDS_OBJECT_VERSION_STRING, file);
putLong(RGBDS_OBJECT_REV, file);

putLong(objectSymbols.size(), file);
Expand Down
2 changes: 1 addition & 1 deletion src/link/object.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 != strlen(RGBDS_OBJECT_VERSION_STRING))
&& matchedElems != QUOTEDSTRLEN(RGBDS_OBJECT_VERSION_STRING))
errx("%s: Not a RGBDS object file", fileName);

verbosePrint("Reading object file %s\n", fileName);
Expand Down

0 comments on commit cebca02

Please sign in to comment.