Skip to content

Commit

Permalink
Fix 'distinct pointer types compared' gcc warning in soft_set_grungy_…
Browse files Browse the repository at this point in the history
…pages

(fix of commit e37ab2a)

Issue #627 (bdwgc).

* os_dep.c [SOFT_VDB] (soft_set_grungy_pages): Cast h to ptr_t when
passed to ADDR_LT().
  • Loading branch information
ivmai committed Apr 15, 2024
1 parent 2f7b8ed commit 4859275
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion os_dep.c
Original file line number Diff line number Diff line change
Expand Up @@ -4105,7 +4105,7 @@ GC_INLINE void GC_proc_read_dirty(GC_bool output_unneeded)
h = (struct hblk *)vaddr;
if (EXPECT(ADDR_LT(vaddr, start), FALSE))
h = (struct hblk *)start;
for (; ADDR_LT(h, next_vaddr); h++) {
for (; ADDR_LT((ptr_t)h, next_vaddr); h++) {
word index = PHT_HASH(h);

/* Filter out the blocks without pointers. It might worth */
Expand Down

0 comments on commit 4859275

Please sign in to comment.