mirror of
https://git.mirrors.martin98.com/https://github.com/syoyo/tinygltf.git
synced 2025-08-01 07:12:00 +08:00
Merge pull request #485 from bwrsandman/patch-1
msvc 32bit: Fix C4244 warning
This commit is contained in:
commit
e54660fbf9
@ -3042,7 +3042,7 @@ bool GetFileSizeInBytes(size_t *filesize_out, std::string *err,
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
(*filesize_out) = sz;
|
(*filesize_out) = static_cast<size_t>(sz);
|
||||||
return true;
|
return true;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
@ -3067,7 +3067,7 @@ bool ReadWholeFile(std::vector<unsigned char> *out, std::string *err,
|
|||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
out->resize(size);
|
out->resize(static_cast<size_t>(size));
|
||||||
AAsset_read(asset, reinterpret_cast<char *>(&out->at(0)), size);
|
AAsset_read(asset, reinterpret_cast<char *>(&out->at(0)), size);
|
||||||
AAsset_close(asset);
|
AAsset_close(asset);
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user