drop unnecessary cast

This commit is contained in:
Vítor Santos Costa 2015-07-22 18:59:57 -05:00
parent 98d7b2d7f8
commit 2a20217c46

View File

@ -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;