Fix GC_ASSERT usage (fix missing trailing semi-colon)
authorIvan Maidanski <ivmai@mail.ru>
Thu, 29 Dec 2011 06:38:09 +0000 (10:38 +0400)
committerIvan Maidanski <ivmai@mail.ru>
Thu, 29 Dec 2011 06:38:09 +0000 (10:38 +0400)
* misc.c (GC_init): Append ';' after GC_ASSERT().
* os_dep.c (GC_protect_heap): Likewise.

misc.c
os_dep.c

diff --git a/misc.c b/misc.c
index ac78592..27f264a 100644 (file)
--- a/misc.c
+++ b/misc.c
@@ -950,7 +950,7 @@ GC_API void GC_CALL GC_init(void)
         /* For GWW_VDB on Win32, this needs to happen before any        */
         /* heap memory is allocated.                                    */
         GC_dirty_init();
-        GC_ASSERT(GC_bytes_allocd == 0)
+        GC_ASSERT(GC_bytes_allocd == 0);
         GC_incremental = TRUE;
       }
 #   endif
index 6aea75f..97d84b0 100644 (file)
--- a/os_dep.c
+++ b/os_dep.c
@@ -3375,8 +3375,8 @@ STATIC void GC_protect_heap(void)
         if (protect_all) {
           PROTECT(start, len);
         } else {
-          GC_ASSERT(PAGE_ALIGNED(len))
-          GC_ASSERT(PAGE_ALIGNED(start))
+          GC_ASSERT(PAGE_ALIGNED(len));
+          GC_ASSERT(PAGE_ALIGNED(start));
           current_start = current = (struct hblk *)start;
           limit = (struct hblk *)(start + len);
           while (current < limit) {