summaryrefslogtreecommitdiffstats
path: root/Modules/_io/bufferedio.c
diff options
context:
space:
mode:
authorMark Dickinson <dickinsm@gmail.com>2009-11-24 20:54:11 (GMT)
committerMark Dickinson <dickinsm@gmail.com>2009-11-24 20:54:11 (GMT)
commit1a0aaaabb6a6612cf0035588542895fe3a934b90 (patch)
treef665125bbd32834e5bbc61c033c450be8154cca0 /Modules/_io/bufferedio.c
parentdb0401c1aa8750e4e9a3573974ac1fc7a32319c5 (diff)
downloadcpython-1a0aaaabb6a6612cf0035588542895fe3a934b90.zip
cpython-1a0aaaabb6a6612cf0035588542895fe3a934b90.tar.gz
cpython-1a0aaaabb6a6612cf0035588542895fe3a934b90.tar.bz2
Merged revisions 76502 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r76502 | mark.dickinson | 2009-11-24 20:51:48 +0000 (Tue, 24 Nov 2009) | 3 lines Issue #7228: Fix format mismatch when printing something of type off_t. (Should silence some compiler warnings.) ........
Diffstat (limited to 'Modules/_io/bufferedio.c')
-rw-r--r--Modules/_io/bufferedio.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/Modules/_io/bufferedio.c b/Modules/_io/bufferedio.c
index dd4e53f..39c778c 100644
--- a/Modules/_io/bufferedio.c
+++ b/Modules/_io/bufferedio.c
@@ -582,7 +582,8 @@ _buffered_raw_tell(buffered *self)
if (n < 0) {
if (!PyErr_Occurred())
PyErr_Format(PyExc_IOError,
- "Raw stream returned invalid position %zd", n);
+ "Raw stream returned invalid position %" PY_PRIdOFF,
+ (PY_OFF_T_COMPAT)n);
return -1;
}
self->abs_pos = n;
@@ -614,7 +615,8 @@ _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 %zd", n);
+ "Raw stream returned invalid position %" PY_PRIdOFF,
+ (PY_OFF_T_COMPAT)n);
return -1;
}
self->abs_pos = n;