BIND 10 trac2429, updated. 93cbc6cc8a27e8dad8eb0ef10a66655e7fbf6101 [2429] some style fixes: return ref from proxy method; add 'u' to numeric val
BIND 10 source code commits
bind10-changes at lists.isc.org
Tue Dec 18 05:48:14 UTC 2012
The branch, trac2429 has been updated
via 93cbc6cc8a27e8dad8eb0ef10a66655e7fbf6101 (commit)
from d7a0286809c9759de8f33209823eaddfe3f76264 (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 93cbc6cc8a27e8dad8eb0ef10a66655e7fbf6101
Author: JINMEI Tatuya <jinmei at isc.org>
Date: Mon Dec 17 21:47:38 2012 -0800
[2429] some style fixes: return ref from proxy method; add 'u' to numeric val
-----------------------------------------------------------------------
Summary of changes:
src/lib/dns/rrttl.h | 2 +-
src/lib/dns/tests/rrttl_unittest.cc | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
-----------------------------------------------------------------------
diff --git a/src/lib/dns/rrttl.h b/src/lib/dns/rrttl.h
index ed51206..e160a1e 100644
--- a/src/lib/dns/rrttl.h
+++ b/src/lib/dns/rrttl.h
@@ -293,7 +293,7 @@ public:
///
/// \note At the moment an RRTTL object can have a value larger than
/// this limit. We may revisit it in a future version.
- static const RRTTL MAX() {
+ static const RRTTL& MAX() {
static const RRTTL max_ttl(0x7fffffff);
return (max_ttl);
}
diff --git a/src/lib/dns/tests/rrttl_unittest.cc b/src/lib/dns/tests/rrttl_unittest.cc
index 4c0ff4d..916f720 100644
--- a/src/lib/dns/tests/rrttl_unittest.cc
+++ b/src/lib/dns/tests/rrttl_unittest.cc
@@ -266,7 +266,7 @@ TEST_F(RRTTLTest, gthan) {
}
TEST_F(RRTTLTest, maxTTL) {
- EXPECT_EQ((1 << 31) - 1, RRTTL::MAX().getValue());
+ EXPECT_EQ((1u << 31) - 1, RRTTL::MAX().getValue());
}
// test operator<<. We simply confirm it appends the result of toText().
More information about the bind10-changes
mailing list