From eaf890eb279a076ef4d5db30cb2569b0e2b35545 Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Tue, 31 Jan 2012 08:24:26 +0400 Subject: [PATCH] Fix FREE_ASSERT usage (fix missing trailing semi-colon) * allchblk.c (GC_add_to_fl): Append ';' after FREE_ASSERT(). * allchblk.c (GC_remove_from_fl): Fix a typo in a comment. --- allchblk.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/allchblk.c b/allchblk.c index 72faf5fe..f6ea681e 100644 --- a/allchblk.c +++ b/allchblk.c @@ -297,7 +297,7 @@ STATIC void GC_remove_from_fl(hdr *hhdr, int n) GC_ASSERT(((hhdr -> hb_sz) & (HBLKSIZE-1)) == 0); # ifndef USE_MUNMAP - /* We always need index to mainatin free counts. */ + /* We always need index to maintain free counts. */ if (FL_UNKNOWN == n) { index = GC_hblk_fl_from_blocks(divHBLKSZ(hhdr -> hb_sz)); } else { @@ -382,7 +382,7 @@ STATIC void GC_add_to_fl(struct hblk *h, hdr *hhdr) GC_ASSERT(((hhdr -> hb_sz) & (HBLKSIZE-1)) == 0); GC_hblkfreelist[index] = h; INCR_FREE_BYTES(index, hhdr -> hb_sz); - FREE_ASSERT(GC_free_bytes[index] <= GC_large_free_bytes) + FREE_ASSERT(GC_free_bytes[index] <= GC_large_free_bytes); hhdr -> hb_next = second; hhdr -> hb_prev = 0; if (0 != second) { -- 2.40.0