From 169daa11155988a210fac949297381743f3cb400 Mon Sep 17 00:00:00 2001 From: Kacper Date: Tue, 9 Dec 2025 23:14:53 +0100 Subject: feat: clang-tidy fixes --- lib/libc/stdio/dtoa.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/libc/stdio/dtoa.c') 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 // for LIBC_LOCK, LIBC_UNLOCK -#include // for __IMPL -#include // for thrd_current +#include <__thread.h> // for __thread_self +#include // for LIBC_LOCK, LIBC_UNLOCK +#include // 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; -- cgit v1.2.3