diff options
| author | EuAndreh <eu@euandre.org> | 2025-01-17 10:53:59 -0300 |
|---|---|---|
| committer | EuAndreh <eu@euandre.org> | 2025-01-17 10:53:59 -0300 |
| commit | 6339fc0f869fe275acdd70e47a4c64100cdcf28a (patch) | |
| tree | d3fc0eaec22eaabee053979c9649b6043cde5702 /tests | |
| parent | src/trace.c: Replace thread_local with pthreads (diff) | |
| download | pindaiba-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.c | 2 |
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); { |
