[issue9971] Optimize BufferedReader.readinto

STINNER Victor report at bugs.python.org
Tue May 10 13:01:55 CEST 2011


STINNER Victor <victor.stinner at haypocalc.com> added the comment:

+    Py_SAFE_DOWNCAST(READAHEAD(self), Py_off_t, Py_ssize_t)

Why downcasting the size? Can't you store the size into a Py_off_t? I suppose that sizeof(Py_off_t) >= sizeof(Py_ssize_t).

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9971>
_______________________________________


More information about the Python-bugs-list mailing list