summaryrefslogtreecommitdiffstats
path: root/unwind.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2022-02-14 06:29:25 -0800
committerKaz Kylheku <kaz@kylheku.com>2022-02-14 06:29:25 -0800
commitdb69c993b1b3de0509a06d80ddd6d5e88baedfd8 (patch)
tree470fd608298c500a39388a6b9b938fd2ba1cffd5 /unwind.c
parentde0268077b27309540e2463242f12c5455e94b8e (diff)
downloadtxr-db69c993b1b3de0509a06d80ddd6d5e88baedfd8.tar.gz
txr-db69c993b1b3de0509a06d80ddd6d5e88baedfd8.tar.bz2
txr-db69c993b1b3de0509a06d80ddd6d5e88baedfd8.zip
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.
Diffstat (limited to 'unwind.c')
-rw-r--r--unwind.c2
1 files changed, 1 insertions, 1 deletions
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