mirror of
https://github.com/ChaiScript/ChaiScript.git
synced 2025-12-06 16:57:04 +08:00
Merge pull request #423 from zemasoft/develop
Fix potential conversion warning on some platforms
This commit is contained in:
commit
4139eb1efc
@ -223,7 +223,7 @@ namespace chaiscript
|
||||
return std::string();
|
||||
} else {
|
||||
std::vector<char> v(static_cast<size_t>(size));
|
||||
infile.read(&v[0], size);
|
||||
infile.read(&v[0], static_cast<std::streamsize>(size));
|
||||
return std::string(v.begin(), v.end());
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user