Skip to content

Commit

Permalink
fix warning from Ubuntu GCC
Browse files Browse the repository at this point in the history
  • Loading branch information
ezillinger committed May 5, 2024
1 parent aca46b0 commit 8c42132
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Cart.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Cart Cart::load_from_disk(const fs::path& path) {
EZ_ENSURE(sizeBytes > 0);
auto data = std::vector<uint8_t>(size_t(sizeBytes));
auto fp = fopen(path.generic_string().c_str(), "rb");
fread(data.data(), 1, sizeBytes, fp);
ez_assert(sizeBytes == fread(data.data(), 1, sizeBytes, fp));
fclose(fp);

return Cart(data.data(), data.size());
Expand Down

0 comments on commit 8c42132

Please sign in to comment.