diff options
author | Mark Dickinson <dickinsm@gmail.com> | 2009-10-29 09:58:06 (GMT) |
---|---|---|
committer | Mark Dickinson <dickinsm@gmail.com> | 2009-10-29 09:58:06 (GMT) |
commit | cb9285cd3797aa6d33c8fad5f23125d74b4d4487 (patch) | |
tree | e06920d7c0802c6424ef084209dab3e1264ac0fb /Modules/_io/bufferedio.c | |
parent | 1440df2fcfa97415d05d6ad2751c606bb0189fcd (diff) | |
download | cpython-cb9285cd3797aa6d33c8fad5f23125d74b4d4487.zip cpython-cb9285cd3797aa6d33c8fad5f23125d74b4d4487.tar.gz cpython-cb9285cd3797aa6d33c8fad5f23125d74b4d4487.tar.bz2 |
Merged revisions 75939 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r75939 | mark.dickinson | 2009-10-29 09:46:04 +0000 (Thu, 29 Oct 2009) | 5 lines
Roll back ill-considered attempts to fix printf specifier mismatch for off_t.
The sensible solution seems to be to implement %lld for PyString_FromFormat(V)
and PyErr_Format. See issue #7228.
........
Diffstat (limited to 'Modules/_io/bufferedio.c')
-rw-r--r-- | Modules/_io/bufferedio.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Modules/_io/bufferedio.c b/Modules/_io/bufferedio.c index e9452c8..3dec67b 100644 --- a/Modules/_io/bufferedio.c +++ b/Modules/_io/bufferedio.c @@ -580,8 +580,7 @@ _buffered_raw_tell(buffered *self) if (n < 0) { if (!PyErr_Occurred()) PyErr_Format(PyExc_IOError, - "Raw stream returned invalid position %" PY_PRIdOFF, - (PY_OFF_T_COMPAT)n); + "Raw stream returned invalid position %zd", n); return -1; } self->abs_pos = n; @@ -613,8 +612,7 @@ _buffered_raw_seek(buffered *self, Py_off_t target, int whence) if (n < 0) { if (!PyErr_Occurred()) PyErr_Format(PyExc_IOError, - "Raw stream returned invalid position %" PY_PRIdOFF, - (PY_OFF_T_COMPAT)n); + "Raw stream returned invalid position %zd", n); return -1; } self->abs_pos = n; |