We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2a6d834 + a20ae57 commit 57bd72bCopy full SHA for 57bd72b
1 file changed
src/support/file.cpp
@@ -29,7 +29,7 @@ T wasm::read_file(const std::string &filename, bool debug) {
29
}
30
infile.seekg(0, std::ios::end);
31
std::streampos insize = infile.tellg();
32
- if (size_t(insize) >= std::numeric_limits<size_t>::max()) {
+ if (uint64_t(insize) >= std::numeric_limits<size_t>::max()) {
33
// Building a 32-bit executable where size_t == 32 bits, we are not able to create strings larger than 2^32 bytes in length, so must abort here.
34
std::cerr << "Failed opening '" << filename << "': Input file too large: " << insize << " bytes. Try rebuilding in 64-bit mode." << std::endl;
35
exit(EXIT_FAILURE);
0 commit comments