Author: Matti Picus <[email protected]>
Branch: win32-cleanup2
Changeset: r54208:f1aae6ad9af7
Date: 2012-04-05 17:53 +0300
http://bitbucket.org/pypy/pypy/changeset/f1aae6ad9af7/
Log: simplify
diff --git a/pypy/rpython/module/ll_os_stat.py
b/pypy/rpython/module/ll_os_stat.py
--- a/pypy/rpython/module/ll_os_stat.py
+++ b/pypy/rpython/module/ll_os_stat.py
@@ -455,6 +455,6 @@
return intmask(time), intmask(nsec)
def time_t_to_FILE_TIME(time, filetime):
- ft = rffi.r_longlong(time * 10000000) + secs_between_epochs * 10000000
+ ft = rffi.r_longlong((time + secs_between_epochs) * 10000000)
filetime.c_dwHighDateTime = rffi.r_uint(ft >> 32)
filetime.c_dwLowDateTime = rffi.r_uint(ft) # masking off high bits
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit