Skip to content

Commit fcdec96

Browse files
authored
Merge pull request swiftlang#77306 from swiftlang/fix-getTaskId
[Concurrency] Fix getTaskId.
2 parents 13dae34 + bb09297 commit fcdec96

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/public/Concurrency/Task.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ void AsyncTask::setTaskId() {
346346
uint64_t AsyncTask::getTaskId() {
347347
// Reconstitute a full 64-bit task ID from the 32-bit job ID and the upper
348348
// 32 bits held in _private().
349-
return (uint64_t)Id << _private().Id;
349+
return ((uint64_t)_private().Id << 32) | (uint64_t)Id;
350350
}
351351

352352
SWIFT_CC(swift)

0 commit comments

Comments
 (0)