BIND 10 master, updated. a032d84ef41ca563063fa15ad34250f87c05eb65 [master] explicitly cast -1 to std::streampos. needed for some compilers.

BIND 10 source code commits bind10-changes at lists.isc.org
Fri Jan 11 18:36:17 UTC 2013


The branch, master has been updated
       via  a032d84ef41ca563063fa15ad34250f87c05eb65 (commit)
      from  761ece75fb3184fc28ddedcb742cf0c94fb5ef5e (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit a032d84ef41ca563063fa15ad34250f87c05eb65
Author: JINMEI Tatuya <jinmei at isc.org>
Date:   Fri Jan 11 10:35:54 2013 -0800

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

-----------------------------------------------------------------------

Summary of changes:
 src/lib/dns/master_lexer_inputsource.cc |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-----------------------------------------------------------------------
diff --git a/src/lib/dns/master_lexer_inputsource.cc b/src/lib/dns/master_lexer_inputsource.cc
index 335a0dd..ec642a2 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<std::streampos>(-1)) { // cast for some compilers
         isc_throw(InputSource::OpenError, "failed to get input size");
     }
     is.seekg(0, std::ios::beg);



More information about the bind10-changes mailing list