summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAhmed Bougacha <ahmed.bougacha@gmail.com>2017-12-10 05:50:23 +0000
committerAhmed Bougacha <ahmed.bougacha@gmail.com>2017-12-10 05:50:23 +0000
commitb3c6c0c00d983413de921cbf5a139f0c6edcc72c (patch)
treef6e94828c40d26da2e6c00a47a5f041ddca3e31b /test
parentad3dbbda589b45eb4a70561209b46694e35ea46c (diff)
Update another sanitizer test for C++14.
Follow-up to r320251. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@320284 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/asan/TestCases/Posix/halt_on_error-torture.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/asan/TestCases/Posix/halt_on_error-torture.cc b/test/asan/TestCases/Posix/halt_on_error-torture.cc
index d4b123512..559f9434e 100644
--- a/test/asan/TestCases/Posix/halt_on_error-torture.cc
+++ b/test/asan/TestCases/Posix/halt_on_error-torture.cc
@@ -26,7 +26,7 @@ size_t niter = 10;
void random_delay(unsigned *seed) {
*seed = 1664525 * *seed + 1013904223;
- struct timespec delay = { 0, (*seed % 1000) * 1000 };
+ struct timespec delay = { 0, static_cast<long>((*seed % 1000) * 1000) };
nanosleep(&delay, 0);
}