[pypy-svn] r79865 - pypy/branch/fast-forward/pypy/module/select

afa at codespeak.net afa at codespeak.net
Tue Dec 7 02:23:36 CET 2010


Author: afa
Date: Tue Dec  7 02:23:33 2010
New Revision: 79865

Modified:
   pypy/branch/fast-forward/pypy/module/select/interp_epoll.py
Log:
Maybe fix translation


Modified: pypy/branch/fast-forward/pypy/module/select/interp_epoll.py
==============================================================================
--- pypy/branch/fast-forward/pypy/module/select/interp_epoll.py	(original)
+++ pypy/branch/fast-forward/pypy/module/select/interp_epoll.py	Tue Dec  7 02:23:33 2010
@@ -104,7 +104,7 @@
         fd = as_fd_w(self.space, w_fd)
         with lltype.scoped_alloc(epoll_event) as ev:
             ev.c_events = rffi.cast(rffi.UINT, eventmask)
-            ev.c_data.c_fd = fd
+            rffi.setintfield(ev.c_data, 'c_fd', fd)
 
             result = epoll_ctl(self.epfd, ctl, fd, ev)
             if ignore_ebadf and get_errno() == errno.EBADF:



More information about the Pypy-commit mailing list