summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2025-01-17 10:53:59 -0300
committerEuAndreh <eu@euandre.org>2025-01-17 10:53:59 -0300
commit6339fc0f869fe275acdd70e47a4c64100cdcf28a (patch)
treed3fc0eaec22eaabee053979c9649b6043cde5702 /tests
parentsrc/trace.c: Replace thread_local with pthreads (diff)
downloadpindaiba-6339fc0f869fe275acdd70e47a4c64100cdcf28a.tar.gz
pindaiba-6339fc0f869fe275acdd70e47a4c64100cdcf28a.tar.xz
src/trace.c: Add explicit cast for uintptr_t
Diffstat (limited to 'tests')
-rw-r--r--tests/trace.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/trace.c b/tests/trace.c
index 5b59a46..e98c291 100644
--- a/tests/trace.c
+++ b/tests/trace.c
@@ -19,7 +19,7 @@ test_ftracef(void) {
FILE *file = NULL;
char *str = NULL;
- const enum TraceLevel orig = (enum TraceLevel)pthread_getspecific(LEVEL_KEY);
+ const enum TraceLevel orig = (enum TraceLevel)(intptr_t)pthread_getspecific(LEVEL_KEY);
trace_set_level(TraceLevel_INFO);
{