diff options
| author | Michael J. Spencer <bigcheesegs@gmail.com> | 2010-09-24 09:01:34 +0000 |
|---|---|---|
| committer | Michael J. Spencer <bigcheesegs@gmail.com> | 2010-09-24 09:01:34 +0000 |
| commit | d8010d6456e856fe5fc0318c2a7bcfd969f06fa7 (patch) | |
| tree | f21acbfec8ca277868e160abaf1f6284f0e82b79 /llvm/unittests/Support | |
| parent | 5d28c8428fded7d52e3d24abb98c54966a361771 (diff) | |
| download | bcm5719-llvm-d8010d6456e856fe5fc0318c2a7bcfd969f06fa7.tar.gz bcm5719-llvm-d8010d6456e856fe5fc0318c2a7bcfd969f06fa7.zip | |
unittests: Support Windows.
llvm-svn: 114727
Diffstat (limited to 'llvm/unittests/Support')
| -rw-r--r-- | llvm/unittests/Support/System.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/unittests/Support/System.cpp b/llvm/unittests/Support/System.cpp index b3dd17d380d..94f1978b598 100644 --- a/llvm/unittests/Support/System.cpp +++ b/llvm/unittests/Support/System.cpp @@ -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(now_t - now.toEpochTime()) < 2); + EXPECT_TRUE(abs(static_cast<time_t>(now_t - now.toEpochTime())) < 2); } } |

