Commit a032d84e authored by JINMEI Tatuya's avatar JINMEI Tatuya
Browse files

[master] explicitly cast -1 to std::streampos. needed for some compilers.

parent 761ece75
......@@ -53,7 +53,7 @@ getStreamSize(std::istream& is) {
return (MasterLexer::SOURCE_SIZE_UNKNOWN);
}
const std::streampos len = is.tellg();
if (len == -1) {
if (len == static_cast<std::streampos>(-1)) { // cast for some compilers
isc_throw(InputSource::OpenError, "failed to get input size");
}
is.seekg(0, std::ios::beg);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment