diff options
author | Guido van Rossum <guido@python.org> | 1998-04-10 22:27:42 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1998-04-10 22:27:42 (GMT) |
commit | 730806d3d9bd8c54466e4a864b2b1f94df4413d2 (patch) | |
tree | 95ef041ad6e66f6cfbee3b6f84de6542c2cd36a7 /Modules/parsermodule.c | |
parent | 1109fbca76d08bb2f11f2899580d2ab7dbe796fa (diff) | |
download | cpython-730806d3d9bd8c54466e4a864b2b1f94df4413d2.zip cpython-730806d3d9bd8c54466e4a864b2b1f94df4413d2.tar.gz cpython-730806d3d9bd8c54466e4a864b2b1f94df4413d2.tar.bz2 |
Make new gcc -Wall happy
Diffstat (limited to 'Modules/parsermodule.c')
-rw-r--r-- | Modules/parsermodule.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Modules/parsermodule.c b/Modules/parsermodule.c index c09cccc..57fbf48 100644 --- a/Modules/parsermodule.c +++ b/Modules/parsermodule.c @@ -1704,20 +1704,22 @@ validate_try(tree) res = (validate_numnodes(tree, 6, "try/finally") && validate_colon(CHILD(tree, 4)) && validate_suite(CHILD(tree, 5))); - else if (res) + else if (res) { if (nch == (pos + 3)) { res = ((strcmp(STR(CHILD(tree, pos)), "except") == 0) || (strcmp(STR(CHILD(tree, pos)), "else") == 0)); if (!res) err_string("Illegal trailing triple in try statement."); } - else if (nch == (pos + 6)) + else if (nch == (pos + 6)) { res = (validate_name(CHILD(tree, pos), "except") && validate_colon(CHILD(tree, pos + 1)) && validate_suite(CHILD(tree, pos + 2)) && validate_name(CHILD(tree, pos + 3), "else")); + } else res = validate_numnodes(tree, pos + 3, "try/except"); + } } return (res); |