summaryrefslogtreecommitdiff
path: root/lib/libc/stdio/dtoa.c
diff options
context:
space:
mode:
authorKacper <kacper@mail.openlinux.dev>2025-12-09 23:14:53 +0100
committerKacper <kacper@mail.openlinux.dev>2025-12-09 23:14:53 +0100
commit169daa11155988a210fac949297381743f3cb400 (patch)
tree602ef5df5ae9ea075ab3d5dac3c8ad60da1ea2cc /lib/libc/stdio/dtoa.c
parent4e2112e165fdd94dee58378e3ea32892f3710cd7 (diff)
feat: clang-tidy fixes
Diffstat (limited to 'lib/libc/stdio/dtoa.c')
-rw-r--r--lib/libc/stdio/dtoa.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libc/stdio/dtoa.c b/lib/libc/stdio/dtoa.c
index faf4bd8c..0322162b 100644
--- a/lib/libc/stdio/dtoa.c
+++ b/lib/libc/stdio/dtoa.c
@@ -210,9 +210,9 @@
* used for input more than STRTOD_DIGLIM digits long (default 40).
*/
-#include <atomic.h> // for LIBC_LOCK, LIBC_UNLOCK
-#include <libc.h> // for __IMPL
-#include <threads.h> // for thrd_current
+#include <__thread.h> // for __thread_self
+#include <atomic.h> // for LIBC_LOCK, LIBC_UNLOCK
+#include <threads.h> // for thrd_current
static atomic_flag dtoa_lock[2] = { ATOMIC_FLAG_INIT, ATOMIC_FLAG_INIT };
@@ -1556,7 +1556,7 @@ void set_max_dtoa_threads(unsigned int n)
static ThInfo *get_TI(void)
{
- unsigned int thno = __IMPL(thrd_current())->tid;
+ unsigned int thno = ((struct __thread_self *)thrd_current())->tid;
if (thno < maxthreads)
return TI1 + thno;