Merge pull request #2201 from rolfbjarne/linker-better-xml-processing-errors
[mono.git] / mono / sgen / sgen-cardtable.c
index fb18def266d4bd4441db6466c5f782c4bd2b80d9..21da2d0df848ba32e69c2126d1d8d9fb3ffeee3e 100644 (file)
@@ -247,7 +247,7 @@ sgen_card_table_mark_range (mword address, mword size)
        SGEN_ASSERT (0, num_cards <= CARD_COUNT_IN_BYTES, "How did we get an object larger than the card table?");
        if (end > SGEN_CARDTABLE_END) {
                memset (start, 1, SGEN_CARDTABLE_END - start);
-               memset (sgen_cardtable, 1, end - sgen_cardtable);
+               memset (sgen_cardtable, 1, end - SGEN_CARDTABLE_END);
                return;
        }
 #endif