Skip to content

Commit 6b3e2cd

Browse files
authored
Merge pull request #82139 from mhegazy/fix_dsipatch_build_on_android
Add explicit cast to nsec in android platforms
2 parents 5e37849 + 43b49dd commit 6b3e2cd

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)