Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
edd0de58
Commit
edd0de58
authored
Aug 20, 2013
by
Serhiy Storchaka
Browse files
Options
Browse Files
Download
Plain Diff
Issue #13461: Fix a crash in the TextIOWrapper.tell method on 64-bit platforms.
Patch by Yogesh Chaudhari.
parents
bb2c45e7
ec67d187
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
Misc/NEWS
Misc/NEWS
+3
-0
Modules/_io/textio.c
Modules/_io/textio.c
+1
-1
No files found.
Misc/NEWS
View file @
edd0de58
...
...
@@ -284,6 +284,9 @@ Core and Builtins
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 #14323: Expanded the number of digits in the coefficients for the
...
...
Modules/_io/textio.c
View file @
edd0de58
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment