From b3c6c0c00d983413de921cbf5a139f0c6edcc72c Mon Sep 17 00:00:00 2001 From: Ahmed Bougacha Date: Sun, 10 Dec 2017 05:50:23 +0000 Subject: 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 --- test/asan/TestCases/Posix/halt_on_error-torture.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') 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((*seed % 1000) * 1000) }; nanosleep(&delay, 0); } -- cgit v1.2.3