mirror of
https://git.mirrors.martin98.com/https://github.com/syoyo/tinygltf.git
synced 2025-08-13 16:49:04 +08:00
Merge remote-tracking branch 'origin/master' into move_operator
This commit is contained in:
commit
6f08785e9f
@ -2408,7 +2408,7 @@ bool ReadWholeFile(std::vector<unsigned char> *out, std::string *err,
|
||||
size_t sz = static_cast<size_t>(f.tellg());
|
||||
f.seekg(0, f.beg);
|
||||
|
||||
if (int(sz) < 0) {
|
||||
if (int64_t(sz) < 0) {
|
||||
if (err) {
|
||||
(*err) += "Invalid file size : " + filepath +
|
||||
" (does the path point to a directory?)";
|
||||
|
Loading…
x
Reference in New Issue
Block a user