summaryrefslogtreecommitdiff
path: root/libc/src/threads/thrd_detach.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libc/src/threads/thrd_detach.cpp')
-rw-r--r--libc/src/threads/thrd_detach.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/libc/src/threads/thrd_detach.cpp b/libc/src/threads/thrd_detach.cpp
index e3c4301709cd..20c6540faa17 100644
--- a/libc/src/threads/thrd_detach.cpp
+++ b/libc/src/threads/thrd_detach.cpp
@@ -14,11 +14,11 @@
namespace __llvm_libc {
-static_assert(sizeof(thrd_t) == sizeof(__llvm_libc::Thread<int>),
- "Mismatch between thrd_t and internal Thread<int>.");
+static_assert(sizeof(thrd_t) == sizeof(__llvm_libc::Thread),
+ "Mismatch between thrd_t and internal Thread.");
LLVM_LIBC_FUNCTION(int, thrd_detach, (thrd_t th)) {
- auto *thread = reinterpret_cast<Thread<int> *>(&th);
+ auto *thread = reinterpret_cast<Thread *>(&th);
thread->detach();
return 0;
}