From 4e5266a78d282a177921ad6d43376f13d0c569e4 Mon Sep 17 00:00:00 2001 From: Justin Ethier Date: Sat, 24 Jun 2017 17:42:37 -0400 Subject: [PATCH] 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. --- gc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gc.c b/gc.c index 7712caa9..c13e33fc 100644 --- a/gc.c +++ b/gc.c @@ -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)) {