projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d8664a2
)
Fix an off-by-one; fixes the second bug in trac #3001
author
Ian Lynagh
<igloo@earth.li>
Wed, 18 Feb 2009 23:56:20 +0000
(23:56 +0000)
committer
Ian Lynagh
<igloo@earth.li>
Wed, 18 Feb 2009 23:56:20 +0000
(23:56 +0000)
rts/LdvProfile.h
patch
|
blob
|
history
diff --git
a/rts/LdvProfile.h
b/rts/LdvProfile.h
index
d85b95c
..
5380c92
100644
(file)
--- a/
rts/LdvProfile.h
+++ b/
rts/LdvProfile.h
@@
-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; \
}