summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2013-08-20 17:07:50 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2013-08-20 17:07:50 (GMT)
commitedd0de58a8fcef72668dd6f342e7e46300322d87 (patch)
treead147189c67aea2d4429fd5aa45a5680834b4aec /Modules
parentbb2c45e7a4101d106bf776cf7217d2f1531e8002 (diff)
parentec67d187ee9a86aaf1108643832f69ad3bc0e369 (diff)
downloadcpython-edd0de58a8fcef72668dd6f342e7e46300322d87.zip
cpython-edd0de58a8fcef72668dd6f342e7e46300322d87.tar.gz
cpython-edd0de58a8fcef72668dd6f342e7e46300322d87.tar.bz2
Issue #13461: Fix a crash in the TextIOWrapper.tell method on 64-bit platforms.
Patch by Yogesh Chaudhari.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_io/textio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_io/textio.c b/Modules/_io/textio.c
index 7b8de90..2db37d3 100644
--- a/Modules/_io/textio.c
+++ b/Modules/_io/textio.c
@@ -2368,7 +2368,7 @@ textiowrapper_tell(textio *self, PyObject *args)
while (input < input_end) {
Py_ssize_t n;
- DECODER_DECODE(input, 1, n);
+ DECODER_DECODE(input, (Py_ssize_t)1, n);
/* We got n chars for 1 byte */
chars_decoded += n;
cookie.bytes_to_feed += 1;