From db69c993b1b3de0509a06d80ddd6d5e88baedfd8 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Mon, 14 Feb 2022 06:29:25 -0800 Subject: Another implicit conversion in continuations implementation. * unwind.c (revive_cont): Explicitly convert delta, which is necessarily signed because it may be negative, to uint_ptr_t before adding it to that type. --- unwind.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unwind.c b/unwind.c index 36283748..d9ba3c52 100644 --- a/unwind.c +++ b/unwind.c @@ -1093,7 +1093,7 @@ static val revive_cont(val dc, val arg) if (word >= orig_start - UW_CONT_FRAME_BEFORE && word <= orig_end && is_ptr(coerce(val, word))) { - *wordptr = word + delta; + *wordptr = word + convert(uint_ptr_t, delta); } #if HAVE_VALGRIND -- cgit v1.2.3