diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2022-06-07 09:37:42 +0300 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2022-06-07 18:39:00 +0300 |
commit | 1babb93fcd136f3987f2c56e980488360d148f3c (patch) | |
tree | c563f11bb3ba25759994ab112bd3a68e321ab451 /typd_mlc.c | |
parent | fdd3dc044a171a1d657d0de42547cc5a9d756a30 (diff) | |
download | bdwgc-1babb93fcd136f3987f2c56e980488360d148f3c.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.
Diffstat (limited to 'typd_mlc.c')
-rw-r--r-- | typd_mlc.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -606,7 +606,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; } |