From e21735512ea1561726b46f2c7f0e8fd64d39e70f Mon Sep 17 00:00:00 2001 From: Justin Ethier Date: Thu, 15 Jul 2021 20:00:33 -0700 Subject: [PATCH] Attempt to avoid compilation warnings on clang --- include/cyclone/runtime.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/cyclone/runtime.h b/include/cyclone/runtime.h index d175fb68..f50212a5 100644 --- a/include/cyclone/runtime.h +++ b/include/cyclone/runtime.h @@ -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; \