small fixes

This commit is contained in:
Vítor Santos Costa
2018-10-18 22:00:27 +01:00
parent b31493c777
commit b4bd6b4ba8
8 changed files with 16 additions and 24 deletions

View File

@@ -977,7 +977,7 @@ PredEntry *YAPPredicate::getPred(Term &t, Term &m, CELL *&out) {
} else {
ap = RepPredProp(PredPropByFunc(f, m));
if (out)
memmove(out, RepAppl(t) + 1, ap->ArityOfPE * sizeof(CELL));
memmove(out, (const CELL *)RepAppl(t) + 1, ap->ArityOfPE * sizeof(CELL));
else
out = RepAppl(t) + 1;
}