Do not gc_heap_align result of gc_allocated_bytes

This function already heap aligns it's return value so there is no need to use the alignment macro again.
This commit is contained in:
Justin Ethier 2017-06-24 17:42:37 -04:00
parent ee8dc1998d
commit 4e5266a78d

2
gc.c
View file

@ -995,7 +995,7 @@ size_t gc_sweep(gc_heap * h, int heap_type, size_t * sum_freed_ptr, gc_thread_da
#endif
continue;
}
size = gc_heap_align(gc_allocated_bytes(p, q, r));
size = gc_allocated_bytes(p, q, r);
#if GC_SAFETY_CHECKS
if (!is_object_type(p)) {