more bigint and dbterm fixes.

This commit is contained in:
Vítor Santos Costa
2010-12-16 22:21:46 +00:00
parent 5a2d908489
commit cfe0dda995
11 changed files with 198 additions and 105 deletions

View File

@@ -250,10 +250,11 @@ ConstantTermAdjust (Term t)
static Term
DBGroundTermAdjust (Term t)
{
/* The term itself is restored by dbtermlist */
if (IsPairTerm(t)) {
return AdjustDBTerm(t, PtoHeapCellAdjust(RepPair(t)));
return AbsPair(PtoHeapCellAdjust(RepPair(t)));
} else {
return AdjustDBTerm(t, PtoHeapCellAdjust(RepAppl(t)));
return AbsAppl(PtoHeapCellAdjust(RepAppl(t)));
}
}