Skip to content
Snippets Groups Projects
Commit 19a349ee authored by Alexis Nasr's avatar Alexis Nasr
Browse files

fixed bug in movements.c

parent 0705ed04
Branches
No related tags found
No related merge requests found
......@@ -20,7 +20,8 @@ int movement_left_arc(config *c, int movement_code, int label)
word_set_gov(dep, dist);
word_set_label(dep, label);
gov->lspan = dep->lspan;
if(gov && dep)
gov->lspan = dep->lspan;
config_push_mvt(c, movement_code, gov, dep);
......@@ -57,7 +58,8 @@ int movement_right_arc(config *c, int movement_code, int label)
word_set_gov(dep, dist);
word_set_label(dep, label);
gov->rspan = dep->rspan;
if(gov && dep)
gov->rspan = dep->rspan;
stack_push(config_get_stack(c), word_buffer_b0(config_get_buffer(c)));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment