[pypy-svn] r76973 - pypy/trunk/pypy/rpython/module

afa at codespeak.net afa at codespeak.net
Thu Sep 9 16:47:48 CEST 2010


Author: afa
Date: Thu Sep  9 16:47:47 2010
New Revision: 76973

Modified:
   pypy/trunk/pypy/rpython/module/ll_os_stat.py
Log:
Fix translation on Windows


Modified: pypy/trunk/pypy/rpython/module/ll_os_stat.py
==============================================================================
--- pypy/trunk/pypy/rpython/module/ll_os_stat.py	(original)
+++ pypy/trunk/pypy/rpython/module/ll_os_stat.py	Thu Sep  9 16:47:47 2010
@@ -437,5 +437,5 @@
 def time_t_to_FILE_TIME(time, filetime):
     ft = lltype.r_longlong((time + secs_between_epochs) * 10000000)
     filetime.c_dwHighDateTime = lltype.r_uint(ft >> 32)
-    filetime.c_dwLowDateTime = lltype.r_uint(ft & ((1 << 32) - 1))
+    filetime.c_dwLowDateTime = lltype.r_uint(ft & lltype.r_uint(-1))
 



More information about the Pypy-commit mailing list