static_cast to long, otherwise MSVC 2008 won't compile.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115503 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Francois Pichet 2010-10-04 12:31:20 +00:00
parent ab62b7e861
commit 2e0affb428

View File

@ -11,6 +11,6 @@ class SystemTest : public ::testing::Test {
TEST_F(SystemTest, TimeValue) {
sys::TimeValue now = sys::TimeValue::now();
time_t now_t = time(NULL);
EXPECT_TRUE(abs(static_cast<time_t>(now_t - now.toEpochTime())) < 2);
EXPECT_TRUE(abs(static_cast<long>(now_t - now.toEpochTime())) < 2);
}
}