File tree 1 file changed +5
-4
lines changed
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -4050,14 +4050,15 @@ maybe_optimize_method_call(struct compiler *c, expr_ty e)
4050
4050
}
4051
4051
4052
4052
static int
4053
- validate_keywords (struct compiler * c , asdl_seq * keywords ) {
4054
- int nkeywords = asdl_seq_LEN (keywords );
4055
- for (int i = 0 ; i < nkeywords ; i ++ ) {
4053
+ validate_keywords (struct compiler * c , asdl_seq * keywords )
4054
+ {
4055
+ Py_ssize_t nkeywords = asdl_seq_LEN (keywords );
4056
+ for (Py_ssize_t i = 0 ; i < nkeywords ; i ++ ) {
4056
4057
keyword_ty key = ((keyword_ty )asdl_seq_GET (keywords , i ));
4057
4058
if (key -> arg == NULL ) {
4058
4059
continue ;
4059
4060
}
4060
- for (int j = i + 1 ; j < nkeywords ; j ++ ) {
4061
+ for (Py_ssize_t j = i + 1 ; j < nkeywords ; j ++ ) {
4061
4062
keyword_ty other = ((keyword_ty )asdl_seq_GET (keywords , j ));
4062
4063
if (other -> arg && !PyUnicode_Compare (key -> arg , other -> arg )) {
4063
4064
PyObject * msg = PyUnicode_FromFormat ("keyword argument repeated: %U" , key -> arg );
You can’t perform that action at this time.
0 commit comments