summaryrefslogtreecommitdiff
path: root/ptr_chck.c
diff options
context:
space:
mode:
Diffstat (limited to 'ptr_chck.c')
-rw-r--r--ptr_chck.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ptr_chck.c b/ptr_chck.c
index 9b0da0c1..d8076e84 100644
--- a/ptr_chck.c
+++ b/ptr_chck.c
@@ -242,7 +242,7 @@ GC_API void * GC_CALL GC_is_visible(void *p)
} else {
ptr_t type_descr = *(ptr_t *)base;
descr = *(word *)(type_descr
- - (descr - (GC_DS_PER_OBJECT
+ - (descr - (word)(GC_DS_PER_OBJECT
- GC_INDIR_PER_OBJ_BIAS)));
}
goto retry;