mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
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.) ........
This commit is contained in:
parent
db0401c1aa
commit
1a0aaaabb6
2 changed files with 21 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue