Update another sanitizer test for C++14.

Follow-up to r320251.

llvm-svn: 320284
This commit is contained in:
Ahmed Bougacha 2017-12-10 05:50:23 +00:00
parent da7e78e18c
commit 7008c6bc03
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}