Skip to content

Commit 1027a26

Browse files
committed
Add some missing explicit casts.
This resolves jemalloc#614.
1 parent 1e2c9ef commit 1027a26

File tree

1 file changed

+4
-3
lines changed
  • include/jemalloc/internal

1 file changed

+4
-3
lines changed

include/jemalloc/internal/tsd.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -479,13 +479,14 @@ a_name##tsd_wrapper_get(bool init) \
479479
\
480480
if (init && unlikely(wrapper == NULL)) { \
481481
tsd_init_block_t block; \
482-
wrapper = tsd_init_check_recursion( \
483-
&a_name##tsd_init_head, &block); \
482+
wrapper = (a_name##tsd_wrapper_t *) \
483+
tsd_init_check_recursion(&a_name##tsd_init_head, \
484+
&block); \
484485
if (wrapper) \
485486
return (wrapper); \
486487
wrapper = (a_name##tsd_wrapper_t *) \
487488
malloc_tsd_malloc(sizeof(a_name##tsd_wrapper_t)); \
488-
block.data = wrapper; \
489+
block.data = (void *)wrapper; \
489490
if (wrapper == NULL) { \
490491
malloc_write("<jemalloc>: Error allocating" \
491492
" TSD for "#a_name"\n"); \

0 commit comments

Comments
 (0)