mirror of
https://github.com/justinethier/cyclone.git
synced 2025-07-12 23:37:38 +02:00
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:
parent
ee8dc1998d
commit
4e5266a78d
1 changed files with 1 additions and 1 deletions
2
gc.c
2
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
|
#endif
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
size = gc_heap_align(gc_allocated_bytes(p, q, r));
|
size = gc_allocated_bytes(p, q, r);
|
||||||
|
|
||||||
#if GC_SAFETY_CHECKS
|
#if GC_SAFETY_CHECKS
|
||||||
if (!is_object_type(p)) {
|
if (!is_object_type(p)) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue