fix handling of float/1 by indexing code.
This commit is contained in:
parent
c3fb089eeb
commit
1b66eba611
@ -3450,6 +3450,7 @@ install_clause(ClauseDef *cls, PredEntry *ap, istack_entry *stack)
|
|||||||
if (cls->u.t_ptr != sp->extra) break;
|
if (cls->u.t_ptr != sp->extra) break;
|
||||||
} else {
|
} else {
|
||||||
CELL *pt = RepAppl(sp->extra);
|
CELL *pt = RepAppl(sp->extra);
|
||||||
|
if (cls->u.t_ptr) {
|
||||||
CELL *pt1 = RepAppl(cls->u.t_ptr);
|
CELL *pt1 = RepAppl(cls->u.t_ptr);
|
||||||
#if SIZEOF_DOUBLE == 2*SIZEOF_LONG_INT
|
#if SIZEOF_DOUBLE == 2*SIZEOF_LONG_INT
|
||||||
Term t = MkIntTerm(pt[1]^pt[2]),
|
Term t = MkIntTerm(pt[1]^pt[2]),
|
||||||
@ -3462,6 +3463,7 @@ install_clause(ClauseDef *cls, PredEntry *ap, istack_entry *stack)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if ((Int)(sp->pos) > 0) {
|
if ((Int)(sp->pos) > 0) {
|
||||||
move_next(cls, sp->pos);
|
move_next(cls, sp->pos);
|
||||||
} else if (sp->pos) {
|
} else if (sp->pos) {
|
||||||
|
Reference in New Issue
Block a user