adjust bmap pointers too.

This commit is contained in:
Vitor Santos Costa 2011-08-31 14:10:31 -07:00
parent 51e635f0c9
commit 8314ecde02

View File

@ -494,7 +494,7 @@ BlobTermInCodeAdjust__ (Term t USES_REGS)
static inline DBTerm *
DBTermAdjust__ (DBTerm * dbtp USES_REGS)
{
return (DBTerm *) ((DBTerm *) (CharP (dbtp) + LOCAL_HDiff));
return (DBTerm *) (CharP (dbtp) + LOCAL_HDiff);
}
#define CellPtoHeapAdjust(P) CellPtoHeapAdjust__(P PASS_REGS)
@ -556,7 +556,7 @@ PtoHeapCellAdjust__ (CELL * ptr USES_REGS)
LogUpdClause *out;
if ((out = LookupMayFailDBRef((DBRef)ptr)))
return (CELL *)out;
return (CELL *) (((CELL *) (CharP (ptr) + LOCAL_HDiff)));
return (CELL *) (CharP (ptr) + LOCAL_HDiff);
}
#define TermToGlobalAdjust(P) (P)