summaryrefslogtreecommitdiff
path: root/checksums.c
diff options
context:
space:
mode:
Diffstat (limited to 'checksums.c')
-rw-r--r--checksums.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/checksums.c b/checksums.c
index 414ee36d..8ca587df 100644
--- a/checksums.c
+++ b/checksums.c
@@ -68,7 +68,7 @@ STATIC word GC_checksum(struct hblk *h)
word *lim = (word *)(h+1);
word result = 0;
- while (p < lim) {
+ while ((word)p < (word)lim) {
result += *p++;
}
return(result | 0x80000000 /* doesn't look like pointer */);
@@ -193,8 +193,7 @@ void GC_check_dirty(void)
for (i = 0; i < GC_n_heap_sects; i++) {
start = GC_heap_sects[i].hs_start;
for (h = (struct hblk *)start;
- h < (struct hblk *)(start + GC_heap_sects[i].hs_bytes);
- h++) {
+ (word)h < (word)(start + GC_heap_sects[i].hs_bytes); h++) {
GC_update_check_page(h, index);
index++;
if (index >= NSUMS) goto out;