Author: Joannah Nanjekye <[email protected]>
Branch: jumbo
Changeset: r90660:72708c9ace32
Date: 2017-03-13 16:24 +0000
http://bitbucket.org/pypy/pypy/changeset/72708c9ace32/
Log: change offset to r_longlong
diff --git a/pypy/module/posix/interp_posix.py
b/pypy/module/posix/interp_posix.py
--- a/pypy/module/posix/interp_posix.py
+++ b/pypy/module/posix/interp_posix.py
@@ -376,7 +376,7 @@
except OSError as e:
wrap_oserror(space, e, eintr_retry=True)
-@unwrap_spec(fd=c_int, length=int, offset=int)
+@unwrap_spec(fd=c_int, length=int, offset=r_longlong)
def pread(space, fd, length, offset):
"""Read a string to a file descriptor at a given offset.
"""
@@ -388,7 +388,7 @@
else:
return space.newbytes(s)
-@unwrap_spec(fd=c_int, offset=int)
+@unwrap_spec(fd=c_int, offset=r_longlong)
def pwrite(space, fd, w_data, offset):
"""Write a string to a file descriptor at a given offset.
"""
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit