Skip to content

Commit 43b49dd

Browse files
committed
Add explicit cast to non-apple platforms
1 parent 1484f1c commit 43b49dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/public/Concurrency/DispatchGlobalExecutor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ clock_and_value_to_time(int clock, long long sec, long long nsec) {
327327
#else
328328
struct timespec ts = {
329329
.tv_sec = static_cast<long>(sec),
330-
.tv_nsec = nsec
330+
.tv_nsec = static_cast<long>(nsec)
331331
};
332332
#endif
333333
return dispatch_walltime(&ts, 0);

0 commit comments

Comments
 (0)