Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 481d3af

Browse files
Make asdl_c.py to generate Python-ast.c changed in issue #15989.
1 parent 564cf7b commit 481d3af

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Parser/asdl_c.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -898,7 +898,7 @@ def visitModule(self, mod):
898898
return 1;
899899
}
900900
901-
i = (int)PyLong_AsLong(obj);
901+
i = _PyLong_AsInt(obj);
902902
if (i == -1 && PyErr_Occurred())
903903
return 1;
904904
*out = i;

0 commit comments

Comments
 (0)