[pypy-svn] r45154 - pypy/dist/pypy/rpython/module

arigo at codespeak.net arigo at codespeak.net
Tue Jul 17 11:10:17 CEST 2007


Author: arigo
Date: Tue Jul 17 11:10:15 2007
New Revision: 45154

Modified:
   pypy/dist/pypy/rpython/module/ll_os.py
Log:
Uh?  These fields have nothing to do with 'size_t'.


Modified: pypy/dist/pypy/rpython/module/ll_os.py
==============================================================================
--- pypy/dist/pypy/rpython/module/ll_os.py	(original)
+++ pypy/dist/pypy/rpython/module/ll_os.py	Tue Jul 17 11:10:15 2007
@@ -76,8 +76,9 @@
 
 # ------------------------------- os.utime ------------------------------
 
-UTIMEBUFP = rffi.CStruct('utimbuf', ('actime', rffi.SIZE_T),
-                         ('modtime', rffi.SIZE_T))
+TIME_T = rffi.INT    # XXX do the right thing
+UTIMEBUFP = rffi.CStruct('utimbuf', ('actime', TIME_T),
+                                    ('modtime', TIME_T))
 
 # XXX sys/types.h is not portable at all
 ros_utime = rffi.llexternal('utime', [rffi.CCHARP, UTIMEBUFP], lltype.Signed,



More information about the Pypy-commit mailing list