Author: Matti Picus <[email protected]>
Branch:
Changeset: r54209:a7b45b1ec178
Date: 2012-04-05 17:54 +0300
http://bitbucket.org/pypy/pypy/changeset/a7b45b1ec178/
Log: fix float-to-time conversion in windows
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) + 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