summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2022-06-07 09:37:42 +0300
committerIvan Maidanski <ivmai@mail.ru>2022-06-17 00:38:25 +0300
commitd79b752a0e7da1d218abf0987743b5e1729efc2b (patch)
tree75c7a20914ab63b3b8117eb02c7f709287e6c70d
parent6f957b2cde6562734d3629dd47d7fd0e7dbcfb9c (diff)
downloadbdwgc-d79b752a0e7da1d218abf0987743b5e1729efc2b.tar.gz
Fix GC_dirty() argument in GC_malloc_explicitly_typed_ignore_off_page
(fix of commit 73d30d2b4) * typd_mlc.c (GC_malloc_explicitly_typed_ignore_off_page): Cast op local variable to word* in the argument of GC_dirty() call.
-rw-r--r--typd_mlc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/typd_mlc.c b/typd_mlc.c
index 47346070..075960cf 100644
--- a/typd_mlc.c
+++ b/typd_mlc.c
@@ -684,7 +684,7 @@ GC_API GC_ATTR_MALLOC void * GC_CALL
lg = BYTES_TO_GRANULES(GC_size(op));
}
((word *)op)[GRANULES_TO_WORDS(lg) - 1] = d;
- GC_dirty(op + GRANULES_TO_WORDS(lg) - 1);
+ GC_dirty((word *)op + GRANULES_TO_WORDS(lg) - 1);
REACHABLE_AFTER_DIRTY(d);
return op;
}