diff --git a/C/alloc.c b/C/alloc.c index 9229162b0..38952dcff 100644 --- a/C/alloc.c +++ b/C/alloc.c @@ -438,8 +438,8 @@ int Yap_ExtendWorkSpace(Int s) { CACHE_REGS - void *basebp = (void *)LOCAL_GlobalBase, *nbp; - UInt s0 = (char *)LOCAL_TrailTop-(char *)LOCAL_GlobalBase; + void *basebp = LOCAL_GlobalBase, *nbp; + UInt s0 = LOCAL_TrailTop- LOCAL_GlobalBase; nbp = realloc(basebp, s+s0); if (nbp == NULL) return FALSE;