Skip to content

Commit

Permalink
fix -Wstring-plus-int
Browse files Browse the repository at this point in the history
  • Loading branch information
rurban committed Dec 1, 2024
1 parent 6f26346 commit 24b8fdb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/load.c
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ PN potion_load(Potion *P, PN cl, PN self, PN file) {
result = potion_load_code(P, filename);
else if (strcmp(file_ext, "pnb") == 0)
result = potion_load_code(P, filename);
else if (strcmp(file_ext, POTION_LOADEXT+1) == 0)
else if (strcmp(file_ext, &POTION_LOADEXT[1]) == 0)
result = potion_load_dylib(P, filename);
else
fprintf(stderr, "** unrecognized file extension: %s\n", file_ext);
Expand Down

0 comments on commit 24b8fdb

Please sign in to comment.