mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Merged revisions 75728 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r75728 | mark.dickinson | 2009-10-26 19:59:23 +0000 (Mon, 26 Oct 2009) | 3 lines Use correct conversion specifier and length modifier when printing an integer of type off_t. Also, don't assume that long long is available. ........
This commit is contained in:
parent
d51317709b
commit
238b1098ca
2 changed files with 14 additions and 8 deletions
|
@ -580,7 +580,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,
|
||||
n);
|
||||
return -1;
|
||||
}
|
||||
self->abs_pos = n;
|
||||
|
@ -612,7 +613,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,
|
||||
n);
|
||||
return -1;
|
||||
}
|
||||
self->abs_pos = n;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue