Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update Modules/parsermodule.c
Co-Authored-By: pablogsal <Pablogsal@gmail.com>
  • Loading branch information
ZackerySpytz and pablogsal authored Mar 21, 2019
commit db148c089a652f97597f0a23fd16f7b15c141c8b
2 changes: 1 addition & 1 deletion Modules/parsermodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -678,7 +678,7 @@ validate_node(node *tree)

const char *label_str = _PyParser_Grammar.g_ll.ll_label[a_label].lb_str;
if ((_PyParser_Grammar.g_ll.ll_label[a_label].lb_type == ch_type)
&& ( (ch->n_str == NULL ) || (label_str == NULL)
&& ((ch->n_str == NULL) || (label_str == NULL)
|| (strcmp(ch->n_str, label_str) == 0))
) {
/* The child is acceptable; if non-terminal, validate it recursively. */
Expand Down