Browse Source

[trac505] Make max_len const

Michal 'vorner' Vaner 14 years ago
parent
commit
2c54e9c5f4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/bin/auth/tests/query_unittest.cc

+ 1 - 1
src/bin/auth/tests/query_unittest.cc

@@ -667,7 +667,7 @@ TEST_F(QueryTest, MaxLenDNAME) {
              * directly inside ASSERT_EQ, it fails to link and complains
              * it is unresolved external?
              */
-            size_t max_len(Name::MAX_WIRE);
+            const size_t max_len(Name::MAX_WIRE);
             ASSERT_EQ(max_len, dynamic_cast<const rdata::generic::CNAME&>(
                 ci->getCurrent()).getCname().getLength());
         }