minor tweak to QoL tools fix

This commit is contained in:
Colton Rushton 2021-02-27 23:17:35 -04:00
parent 72de89b08a
commit 950d9674a5
2 changed files with 2 additions and 2 deletions

View File

@ -38,7 +38,7 @@ skyconv_SOURCES := skyconv.c n64graphics.c utils.c
gen_asset_list_CXX := g++-8
gen_asset_list_SOURCES := gen_asset_list.cpp
gen_asset_list_CFLAGS := -std=c++17 -O1 -Wall -Wextra -pedantic
gen_asset_list_CFLAGS := -std=c++17 -Wall -Wextra -pedantic -O1
gen_asset_list_LDFLAGS := -lstdc++fs
LIBAUDIOFILE := audiofile/libaudiofile.a

View File

@ -437,7 +437,7 @@ int main(int argc, char **argv)
};
BSWAP16_MANY(inBuffer, left)
fseek(ifile, startPointer, SEEK_SET);
if (fread(inBuffer + left, sizeof(s16), 16 - left, ifile) != ((u32)16 - left)) {
if (fread(inBuffer + left, sizeof(s16), 16 - left, ifile) != (u32)16 - left) {
printf("I/O error occurred.");
exit(1);
};