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:
Victor Stinner 2018-04-30 23:51:02 +02:00 committed by Łukasz Langa
parent 5a49ca61d2
commit fb7e7992be
1 changed files with 1 additions and 1 deletions

View File

@ -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--;