Attempt to avoid compilation warnings on clang

This commit is contained in:
Justin Ethier 2021-07-15 20:00:33 -07:00
parent d9d1b35a62
commit e21735512e

View file

@ -724,7 +724,7 @@ object copy2heap(void *data, object obj);
{ \
gc_thread_data *thd = (gc_thread_data *) data; \
/* Do not allow recursion to remove older frames */ \
if ((char *)frame != thd->stack_prev_frame) { \
if ((void *)frame != (void *)thd->stack_prev_frame) { \
thd->stack_prev_frame = frame; \
thd->stack_traces[thd->stack_trace_idx] = frame; \
thd->stack_trace_idx = (thd->stack_trace_idx + 1) % MAX_STACK_TRACES; \