Fix an off-by-one; fixes the second bug in trac #3001
authorIan Lynagh <igloo@earth.li>
Wed, 18 Feb 2009 23:56:20 +0000 (23:56 +0000)
committerIan Lynagh <igloo@earth.li>
Wed, 18 Feb 2009 23:56:20 +0000 (23:56 +0000)
rts/LdvProfile.h

index d85b95c..5380c92 100644 (file)
@@ -27,7 +27,7 @@ extern void LdvCensusKillAll ( void );
 #define LDV_FILL_SLOP(from, howManyBackwards)  \
   if (era > 0) {                               \
     int i;                                     \
-    for (i = 0;i < (howManyBackwards); i++)    \
+    for (i = 1;i <= (howManyBackwards); i++)   \
       ((StgWord *)(from))[-i] = 0;             \
   }