Fixed compile error with g++-4.6.1

pull/1/head
Tatsuhiro Tsujikawa 2011-05-21 00:04:25 +09:00
parent 36c125c7a2
commit 0f9b59cdce
1 changed files with 1 additions and 1 deletions

View File

@ -191,7 +191,7 @@ void OptionParserTest::testParse()
"bravo=World");
oparser_->parse(option, in);
CPPUNIT_ASSERT_EQUAL
((ptrdiff_t)2, std::distance(option.begin(), option.end()));
((std::ptrdiff_t)2, std::distance(option.begin(), option.end()));
CPPUNIT_ASSERT_EQUAL(std::string("Hello"), option.get("alpha"));
CPPUNIT_ASSERT_EQUAL(std::string("World"), option.get("bravo"));
}