Commit 2c54e9c5 authored by Michal 'vorner' Vaner's avatar Michal 'vorner' Vaner
Browse files

[trac505] Make max_len const

parent 49e2c1ae
...@@ -667,7 +667,7 @@ TEST_F(QueryTest, MaxLenDNAME) { ...@@ -667,7 +667,7 @@ TEST_F(QueryTest, MaxLenDNAME) {
* directly inside ASSERT_EQ, it fails to link and complains * directly inside ASSERT_EQ, it fails to link and complains
* it is unresolved external? * 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&>( ASSERT_EQ(max_len, dynamic_cast<const rdata::generic::CNAME&>(
ci->getCurrent()).getCname().getLength()); ci->getCurrent()).getCname().getLength());
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment