fix bad limit test (caught by valgrind).
This commit is contained in:
parent
5aed596919
commit
222aac067b
@ -2622,8 +2622,8 @@ do_consts(GroupDef *grp, Term t, struct intermediates *cint, int compound_term,
|
|||||||
|
|
||||||
ics = fetch_centry(cs, min->Tag, i, n);
|
ics = fetch_centry(cs, min->Tag, i, n);
|
||||||
ics->Tag = min->Tag;
|
ics->Tag = min->Tag;
|
||||||
while ((max+1)->Tag == min->Tag &&
|
while (max != grp->LastClause && (max+1)->Tag == min->Tag)
|
||||||
max != grp->LastClause) max++;
|
max++;
|
||||||
if (min != max) {
|
if (min != max) {
|
||||||
if (sreg != NULL) {
|
if (sreg != NULL) {
|
||||||
if (ap->PredFlags & LogUpdatePredFlag && max > min) {
|
if (ap->PredFlags & LogUpdatePredFlag && max > min) {
|
||||||
@ -2698,8 +2698,8 @@ do_funcs(GroupDef *grp, Term t, struct intermediates *cint, UInt argno, int firs
|
|||||||
|
|
||||||
ifs = fetch_fentry(fs, f, i, n);
|
ifs = fetch_fentry(fs, f, i, n);
|
||||||
ifs->Tag = f;
|
ifs->Tag = f;
|
||||||
while ((max+1)->Tag == min->Tag &&
|
while (max != grp->LastClause && (max+1)->Tag == min->Tag)
|
||||||
max != grp->LastClause) max++;
|
max++;
|
||||||
/* delay non-trivial indexing
|
/* delay non-trivial indexing
|
||||||
if (min != max &&
|
if (min != max &&
|
||||||
!IsExtensionFunctor(f)) {
|
!IsExtensionFunctor(f)) {
|
||||||
|
Reference in New Issue
Block a user