* src/mm/cacao-gc/gc.h: Fixed typo in POINTS_INTO.
authormichi <none@none>
Tue, 27 Feb 2007 18:19:06 +0000 (18:19 +0000)
committermichi <none@none>
Tue, 27 Feb 2007 18:19:06 +0000 (18:19 +0000)
* src/mm/cacao-gc/compact.c (compact_move): Fixed typo.

--HG--
branch : exact-gc

src/mm/cacao-gc/compact.c
src/mm/cacao-gc/gc.h

index 260146f37a8173809bf5bce6ef69c9f02575102a..1ea4b37c91f71c76029e3ded38c8947639ef97a6 100644 (file)
@@ -307,7 +307,7 @@ u4 compact_move(u1 *old, u1 *new, u4 size)
        s4 hashcode;
        u4 new_size;
 
-       GC_ASSERT(new < old);
+       GC_ASSERT(new <= old);
 
        /* check if locations overlap */
        if (new + size < old) {
index 3788b6a8b5b306fff45a57bcf83f71da6f240fb2..0246992b085299845ba6bfcd06c46acd6db800e9 100644 (file)
@@ -97,7 +97,7 @@
 #define GC_TEST_FLAGS(obj, flags)  ((obj)->hdrflags  &  (flags))
 
 #define POINTS_INTO(ptr, ptr_start, ptr_end) \
-       ((void *) (ptr) > (ptr_start) && (void *) (ptr) < (ptr_end))
+       ((void *) (ptr) >= (ptr_start) && (void *) (ptr) < (ptr_end))
 
 
 /* Global Variables ***********************************************************/