From: JINMEI Tatuya Date: Fri, 11 Jan 2013 18:35:54 +0000 (-0800) Subject: [master] explicitly cast -1 to std::streampos. needed for some compilers. X-Git-Tag: bind10-1.0.0-rc-release~95^2~10 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a032d84ef41ca563063fa15ad34250f87c05eb65;p=thirdparty%2Fkea.git [master] explicitly cast -1 to std::streampos. needed for some compilers. --- diff --git a/src/lib/dns/master_lexer_inputsource.cc b/src/lib/dns/master_lexer_inputsource.cc index 335a0dd6dd..ec642a23d8 100644 --- a/src/lib/dns/master_lexer_inputsource.cc +++ b/src/lib/dns/master_lexer_inputsource.cc @@ -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(-1)) { // cast for some compilers isc_throw(InputSource::OpenError, "failed to get input size"); } is.seekg(0, std::ios::beg);