diff --git a/tiny_gltf.h b/tiny_gltf.h index 79b37dd..62006c4 100644 --- a/tiny_gltf.h +++ b/tiny_gltf.h @@ -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 *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"; }