We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 13dae34 + bb09297 commit fcdec96Copy full SHA for fcdec96
stdlib/public/Concurrency/Task.cpp
@@ -346,7 +346,7 @@ void AsyncTask::setTaskId() {
346
uint64_t AsyncTask::getTaskId() {
347
// Reconstitute a full 64-bit task ID from the 32-bit job ID and the upper
348
// 32 bits held in _private().
349
- return (uint64_t)Id << _private().Id;
+ return ((uint64_t)_private().Id << 32) | (uint64_t)Id;
350
}
351
352
SWIFT_CC(swift)
0 commit comments