Author: Amaury Forgeot d'Arc <[email protected]>
Branch: 
Changeset: r78075:d9c84544ac9f
Date: 2015-06-13 09:28 +0200
http://bitbucket.org/pypy/pypy/changeset/d9c84544ac9f/

Log:    Fix broken translation

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
@@ -3,7 +3,7 @@
 
 from rpython.rlib import rposix, objectmodel, rurandom
 from rpython.rlib.objectmodel import specialize
-from rpython.rlib.rarithmetic import r_longlong
+from rpython.rlib.rarithmetic import r_longlong, intmask
 from rpython.rlib.unroll import unrolling_iterable
 from rpython.rtyper.module import ll_os_stat
 from rpython.rtyper.module.ll_os import RegisterOs
@@ -1321,12 +1321,12 @@
 
 @unwrap_spec(device="c_uint")
 def major(space, device):
-    result = os.major(device)
+    result = os.major(intmask(device))
     return space.wrap(result)
 
 @unwrap_spec(device="c_uint")
 def minor(space, device):
-    result = os.minor(device)
+    result = os.minor(intmask(device))
     return space.wrap(result)
 
 @unwrap_spec(inc=c_int)
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to