diff options
author | Urabe, Shyouhei <[email protected]> | 2019-04-23 17:47:49 +0900 |
---|---|---|
committer | Urabe, Shyouhei <[email protected]> | 2019-04-26 15:59:40 +0900 |
commit | bdd1b300f8bf540c8f237cce50e42991f94101e3 (patch) | |
tree | b86a7be6145c1a3aefaafc21fe8da8a300675a4b /transient_heap.c | |
parent | 171a6ad1c12b1600b01d9bde29947526ae3e2aee (diff) |
__asan_region_is_poisoned takes void *
while heap->obj is a VALUE. A cast should be there.
Diffstat (limited to 'transient_heap.c')
-rw-r--r-- | transient_heap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/transient_heap.c b/transient_heap.c index 334bd4f320..9aad8a183d 100644 --- a/transient_heap.c +++ b/transient_heap.c @@ -807,7 +807,7 @@ transient_heap_block_update_refs(struct transient_heap* theap, struct transient_ unpoison_memory_region(header, sizeof *header, false); - void *poisoned = __asan_region_is_poisoned(header->obj, SIZEOF_VALUE); + void *poisoned = __asan_region_is_poisoned((void *)header->obj, SIZEOF_VALUE); unpoison_object(header->obj, false); header->obj = rb_gc_new_location(header->obj); |