Commits

Brian Kearns committed 590e925

file descriptors that don't fit in a c_int now raise OverflowError

Comments (0)

Files changed (1)

pypy/interpreter/baseobjspace.py

                 raise OperationError(self.w_TypeError,
                     self.wrap("fileno() must return an integer")
                 )
-        fd = self.int_w(w_fd)
+        fd = self.c_int_w(w_fd)
         if fd < 0:
             raise operationerrfmt(self.w_ValueError,
                 "file descriptor cannot be a negative integer (%d)", fd