|
@@ -186,7 +186,7 @@ bool readFile(const char *pszFilePath, std::string &str)
|
|
if(bGood)
|
|
if(bGood)
|
|
{
|
|
{
|
|
stm.seekg(0, std::ios::end);
|
|
stm.seekg(0, std::ios::end);
|
|
- str.reserve(stm.tellg());
|
|
|
|
|
|
+ str.reserve((size_t)stm.tellg());
|
|
stm.seekg(0, std::ios::beg);
|
|
stm.seekg(0, std::ios::beg);
|
|
str.assign((std::istreambuf_iterator<char>(stm)), std::istreambuf_iterator<char>());
|
|
str.assign((std::istreambuf_iterator<char>(stm)), std::istreambuf_iterator<char>());
|
|
}
|
|
}
|