diff options
author | Pablo Galindo <Pablogsal@gmail.com> | 2020-05-01 15:32:09 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-01 15:32:09 (GMT) |
commit | d955241469c18c946924dba79c18a9ef200391ad (patch) | |
tree | 842104f822eb31616102d1d4a93169112a4b67ff /Parser/pegen/parse.c | |
parent | ea7297cf8f1aad4df8921a3d81a75118511afe77 (diff) | |
download | cpython-d955241469c18c946924dba79c18a9ef200391ad.zip cpython-d955241469c18c946924dba79c18a9ef200391ad.tar.gz cpython-d955241469c18c946924dba79c18a9ef200391ad.tar.bz2 |
bpo-40334: Correct return value of func_type_comment (GH-19833)
Diffstat (limited to 'Parser/pegen/parse.c')
-rw-r--r-- | Parser/pegen/parse.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Parser/pegen/parse.c b/Parser/pegen/parse.c index 33c92c2..f4dacbf 100644 --- a/Parser/pegen/parse.c +++ b/Parser/pegen/parse.c @@ -408,7 +408,7 @@ static stmt_ty return_stmt_rule(Parser *p); static stmt_ty raise_stmt_rule(Parser *p); static stmt_ty function_def_rule(Parser *p); static stmt_ty function_def_raw_rule(Parser *p); -static PyObject* func_type_comment_rule(Parser *p); +static Token* func_type_comment_rule(Parser *p); static arguments_ty params_rule(Parser *p); static arguments_ty parameters_rule(Parser *p); static asdl_seq* slash_no_default_rule(Parser *p); @@ -3679,13 +3679,13 @@ function_def_raw_rule(Parser *p) // | NEWLINE TYPE_COMMENT &(NEWLINE INDENT) // | invalid_double_type_comments // | TYPE_COMMENT -static PyObject* +static Token* func_type_comment_rule(Parser *p) { if (p->error_indicator) { return NULL; } - PyObject* res = NULL; + Token* res = NULL; int mark = p->mark; { // NEWLINE TYPE_COMMENT &(NEWLINE INDENT) Token * newline_var; |