bpo-30465: Fix C downcast warning on Windows in ast.c (#6593)
ast.c: fstring_fix_node_location() downcasts a pointer difference to a C int. Replace int with Py_ssize_t to fix the compiler warning.
This commit is contained in:
parent
5a49ca61d2
commit
fb7e7992be
|
@ -4313,7 +4313,7 @@ fstring_fix_node_location(const node *parent, node *n, char *expr_str)
|
|||
break;
|
||||
start--;
|
||||
}
|
||||
cols += substr - start;
|
||||
cols += (int)(substr - start);
|
||||
/* Fix lineno in mulitline strings. */
|
||||
while ((substr = strchr(substr + 1, '\n')))
|
||||
lines--;
|
||||
|
|
Loading…
Reference in New Issue