Skip to content

Commit

Permalink
Fix gcc/clang warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
kring committed Jan 28, 2021
1 parent 2932b56 commit 92af1b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CesiumGltfReader/test/TestReader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ namespace {
long pos = std::ftell(fp);
std::fseek(fp, 0, SEEK_SET);

std::vector<uint8_t> result(pos);
std::vector<uint8_t> result(static_cast<size_t>(pos));
std::fread(result.data(), 1, result.size(), fp);

std::fclose(fp);
Expand Down

0 comments on commit 92af1b4

Please sign in to comment.