Skip to content

Commit

Permalink
Fix Warnings when RGENGC_CHECK_MODE = 1
Browse files Browse the repository at this point in the history
  • Loading branch information
eightbitraptor committed Sep 3, 2020
1 parent c2a569a commit 4f38f70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gc.c
Original file line number Diff line number Diff line change
Expand Up @@ -2145,7 +2145,7 @@ free_garbage(rb_objspace_t *objspace, VALUE garbage)
heap_page_add_freeobj(objspace, page, p);
}

GC_ASSERT(objspace->garbage_slots >= length);
GC_ASSERT(objspace->garbage_slots >= (size_t)length);

page->free_slots += length;
objspace->garbage_slots -= length;
Expand Down

0 comments on commit 4f38f70

Please sign in to comment.