Commit 93cbc6cc authored by JINMEI Tatuya's avatar JINMEI Tatuya

[2429] some style fixes: return ref from proxy method; add 'u' to numeric val

parent d7a02868
......@@ -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);
}
......
......@@ -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().
......
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