check for NULL cps when adjusting.
This commit is contained in:
parent
3f9e1c2836
commit
c3ea833845
3
C/grow.c
3
C/grow.c
@ -1216,12 +1216,15 @@ fix_tabling_info( USES_REGS1 )
|
|||||||
while (df) {
|
while (df) {
|
||||||
if (DepFr_backchain_cp(df))
|
if (DepFr_backchain_cp(df))
|
||||||
DepFr_backchain_cp(df) = ChoicePtrAdjust(DepFr_backchain_cp(df));
|
DepFr_backchain_cp(df) = ChoicePtrAdjust(DepFr_backchain_cp(df));
|
||||||
|
if (DepFr_leader_cp(df))
|
||||||
DepFr_leader_cp(df) = ChoicePtrAdjust(DepFr_leader_cp(df));
|
DepFr_leader_cp(df) = ChoicePtrAdjust(DepFr_leader_cp(df));
|
||||||
|
if (DepFr_cons_cp(df))
|
||||||
DepFr_cons_cp(df) = ConsumerChoicePtrAdjust(DepFr_cons_cp(df));
|
DepFr_cons_cp(df) = ConsumerChoicePtrAdjust(DepFr_cons_cp(df));
|
||||||
df = DepFr_next(df);
|
df = DepFr_next(df);
|
||||||
}
|
}
|
||||||
sg = LOCAL_top_sg_fr;
|
sg = LOCAL_top_sg_fr;
|
||||||
while (sg) {
|
while (sg) {
|
||||||
|
if (SgFr_gen_cp(sg))
|
||||||
SgFr_gen_cp(sg) = GeneratorChoicePtrAdjust(SgFr_gen_cp(sg));
|
SgFr_gen_cp(sg) = GeneratorChoicePtrAdjust(SgFr_gen_cp(sg));
|
||||||
sg = SgFr_next(sg);
|
sg = SgFr_next(sg);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user