From: Joao Eduardo Luis Date: Fri, 23 May 2014 15:52:08 +0000 (+0100) Subject: unittest_strtol: fix compilation warning X-Git-Tag: v0.80.6~46 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=cc4e6258d67fb16d4a92c25078a0822a9849cd77;p=ceph.git unittest_strtol: fix compilation warning Was fixed in master by a4923f5bc373d530d1ffdf6c58a4d88139daedd2 Signed-off-by: Sage Weil --- diff --git a/src/test/strtol.cc b/src/test/strtol.cc index 3c008b6035d1..08ba081ac2bb 100644 --- a/src/test/strtol.cc +++ b/src/test/strtol.cc @@ -159,7 +159,7 @@ static void test_strict_sistrtoll_units(const std::string& foo, long long tmp = strict_strtoll(str, 10, &err2); ASSERT_EQ(err2, ""); tmp = (tmp << m); - ASSERT_EQ(tmp, r); + ASSERT_EQ(tmp, (long long)r); } TEST(SIStrToLL, WithUnits) {