mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-09 04:59:31 -06:00
bugfix in the C runtime which was causing an infinite loop while linearizing partial trees
This commit is contained in:
@@ -327,6 +327,11 @@ pgf_lzn_resolve(PgfLzn* lzn, PgfExpr expr, PgfCCat* ccat, GuPool* pool)
|
||||
if (ccat == NULL) {
|
||||
size_t n_args = gu_buf_length(args);
|
||||
|
||||
int flag = gu_choice_next(lzn->ch, 1);
|
||||
if (flag == 0) {
|
||||
return gu_null_variant;
|
||||
}
|
||||
|
||||
PgfCncTreeChunks* chunks =
|
||||
gu_new_flex_variant(PGF_CNC_TREE_CHUNKS,
|
||||
PgfCncTreeChunks,
|
||||
|
||||
Reference in New Issue
Block a user