mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-28 04:33:05 +00:00
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:
parent
ab62b7e861
commit
2e0affb428
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user