From 57509508da4f95382586417dc06e4e588e4da01e Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Thu, 17 Nov 2016 09:56:12 +0300 Subject: [PATCH] Fix 'incompatible ptr-to-int conversion' compiler warning in push_all_stack * mark_rts.c [TRACE_BUF] (GC_push_all_stack_partially_eager): Add explicit cast to word for GC_add_trace_entry bottom/top arguments. --- mark_rts.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mark_rts.c b/mark_rts.c index 4726af16..d0d2ba43 100644 --- a/mark_rts.c +++ b/mark_rts.c @@ -614,7 +614,7 @@ STATIC void GC_push_all_stack_partially_eager(ptr_t bottom, ptr_t top, GC_push_all_eager(bottom, top); } # ifdef TRACE_BUF - GC_add_trace_entry("GC_push_all_stack", bottom, top); + GC_add_trace_entry("GC_push_all_stack", (word)bottom, (word)top); # endif } -- 2.40.0