mirror of
https://git.mirrors.martin98.com/https://github.com/syoyo/tinygltf.git
synced 2025-07-31 01:42:01 +08:00
Resolve overload ambiguity in VS2015 (version 14.0)
This commit is contained in:
parent
f57d18ad74
commit
e3f9a7d8b3
@ -3030,7 +3030,7 @@ bool GetFileSizeInBytes(size_t *filesize_out, std::string *err,
|
||||
" (does the path point to a directory?)";
|
||||
}
|
||||
return false;
|
||||
} else if (sz == 0) {
|
||||
} else if (sz == std::streamoff(0)) {
|
||||
if (err) {
|
||||
(*err) += "File is empty : " + filepath + "\n";
|
||||
}
|
||||
@ -3125,7 +3125,7 @@ bool ReadWholeFile(std::vector<unsigned char> *out, std::string *err,
|
||||
" (does the path point to a directory?)";
|
||||
}
|
||||
return false;
|
||||
} else if (sz == 0) {
|
||||
} else if (sz == std::streamoff(0)) {
|
||||
if (err) {
|
||||
(*err) += "File is empty : " + filepath + "\n";
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user