mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Merge ssize_t branch.
This commit is contained in:
parent
4482929734
commit
18e165558b
102 changed files with 2659 additions and 1677 deletions
|
@ -939,7 +939,7 @@ print_error_text(PyObject *f, int offset, const char *text)
|
|||
nl = strchr(text, '\n');
|
||||
if (nl == NULL || nl-text >= offset)
|
||||
break;
|
||||
offset -= (nl+1-text);
|
||||
offset -= (int)(nl+1-text);
|
||||
text = nl+1;
|
||||
}
|
||||
while (*text == ' ' || *text == '\t') {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue