Skip to content

Commit e767e7f

Browse files
authored
Merge pull request #81196 from al45tair/eng/PR-150290165-6.2
[Concurrency] Fix copy-paste error.
2 parents 55cda7d + ae47fd7 commit e767e7f

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
@@ -343,7 +343,7 @@ void swift_dispatchEnqueueWithDeadline(bool global,
343343
if (tnsec != -1) {
344344
uint64_t leeway;
345345
if (__builtin_mul_overflow(tsec, NSEC_PER_SEC, &leeway)
346-
|| __builtin_add_overflow(tnsec, deadline, &leeway)) {
346+
|| __builtin_add_overflow(tnsec, leeway, &leeway)) {
347347
leeway = UINT64_MAX;
348348
}
349349

0 commit comments

Comments
 (0)