BIND 10 master, updated. a78bb9934e09d0d98a670f3b61a8c66446806ecc Make some constants unsigned explicitly
BIND 10 source code commits
bind10-changes at lists.isc.org
Mon Nov 12 10:59:15 UTC 2012
The branch, master has been updated
via a78bb9934e09d0d98a670f3b61a8c66446806ecc (commit)
from aceae7d9524c8c174355cc1146b3177c856f218f (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 a78bb9934e09d0d98a670f3b61a8c66446806ecc
Author: Michal 'vorner' Vaner <michal.vaner at nic.cz>
Date: Mon Nov 12 11:53:53 2012 +0100
Make some constants unsigned explicitly
This should fix compilation, where it complains:
rrttl_unittest.cc:79: warning: this decimal constant is unsigned only in ISO C90
-----------------------------------------------------------------------
Summary of changes:
src/lib/dns/tests/rrttl_unittest.cc | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
-----------------------------------------------------------------------
diff --git a/src/lib/dns/tests/rrttl_unittest.cc b/src/lib/dns/tests/rrttl_unittest.cc
index 754dd6c..fe9c55c 100644
--- a/src/lib/dns/tests/rrttl_unittest.cc
+++ b/src/lib/dns/tests/rrttl_unittest.cc
@@ -76,7 +76,7 @@ TEST_F(RRTTLTest, getValue) {
TEST_F(RRTTLTest, fromText) {
// Border cases
EXPECT_EQ(0, RRTTL("0").getValue());
- EXPECT_EQ(4294967295, RRTTL("4294967295").getValue());
+ EXPECT_EQ(4294967295U, RRTTL("4294967295").getValue());
// Invalid cases
EXPECT_THROW(RRTTL("0xdeadbeef"), InvalidRRTTL); // must be decimal
@@ -107,11 +107,11 @@ TEST_F(RRTTLTest, fromTextUnit) {
checkUnit(7 * 24 * 60 * 60, 'W');
// Some border cases (with units)
- EXPECT_EQ(4294967295, RRTTL("4294967295S").getValue());
+ EXPECT_EQ(4294967295U, RRTTL("4294967295S").getValue());
EXPECT_EQ(0, RRTTL("0W0D0H0M0S").getValue());
- EXPECT_EQ(4294967295, RRTTL("1193046H1695S").getValue());
+ EXPECT_EQ(4294967295U, RRTTL("1193046H1695S").getValue());
// Leading zeroes are accepted
- EXPECT_EQ(4294967295, RRTTL("0000000000000004294967295S").getValue());
+ EXPECT_EQ(4294967295U, RRTTL("0000000000000004294967295S").getValue());
// Now some compound ones. We allow any order (it would be much work to
// check the order anyway).
More information about the bind10-changes
mailing list