mirror of
https://github.com/ChaiScript/ChaiScript.git
synced 2025-12-06 16:57:04 +08:00
Fix potential conversion warning on some platforms
This commit is contained in:
parent
ef47b4582e
commit
3dec2af071
@ -223,7 +223,7 @@ namespace chaiscript
|
|||||||
return std::string();
|
return std::string();
|
||||||
} else {
|
} else {
|
||||||
std::vector<char> v(static_cast<size_t>(size));
|
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());
|
return std::string(v.begin(), v.end());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user