Kaydet (Commit) edd0de58 authored tarafından Serhiy Storchaka's avatar Serhiy Storchaka

Issue #13461: Fix a crash in the TextIOWrapper.tell method on 64-bit platforms.

Patch by Yogesh Chaudhari.
...@@ -284,6 +284,9 @@ Core and Builtins ...@@ -284,6 +284,9 @@ Core and Builtins
Library Library
------- -------
- Issue #13461: Fix a crash in the TextIOWrapper.tell method on 64-bit
platforms. Patch by Yogesh Chaudhari.
- Issue #18681: Fix a NameError in importlib.reload() (noticed by Weizhao Li). - Issue #18681: Fix a NameError in importlib.reload() (noticed by Weizhao Li).
- Issue #14323: Expanded the number of digits in the coefficients for the - Issue #14323: Expanded the number of digits in the coefficients for the
......
...@@ -2368,7 +2368,7 @@ textiowrapper_tell(textio *self, PyObject *args) ...@@ -2368,7 +2368,7 @@ textiowrapper_tell(textio *self, PyObject *args)
while (input < input_end) { while (input < input_end) {
Py_ssize_t n; Py_ssize_t n;
DECODER_DECODE(input, 1, n); DECODER_DECODE(input, (Py_ssize_t)1, n);
/* We got n chars for 1 byte */ /* We got n chars for 1 byte */
chars_decoded += n; chars_decoded += n;
cookie.bytes_to_feed += 1; cookie.bytes_to_feed += 1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment