[pypy-commit] pypy default: The next OpenBSD64 fix...

arigo noreply at buildbot.pypy.org
Wed Aug 3 17:44:31 CEST 2011


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r46248:65f7df526fc1
Date: 2011-08-03 17:44 +0200
http://bitbucket.org/pypy/pypy/changeset/65f7df526fc1/

Log:	The next OpenBSD64 fix...

diff --git a/pypy/module/rctime/interp_time.py b/pypy/module/rctime/interp_time.py
--- a/pypy/module/rctime/interp_time.py
+++ b/pypy/module/rctime/interp_time.py
@@ -320,7 +320,7 @@
 def _gettmarg(space, w_tup, allowNone=True):
     if allowNone and space.is_w(w_tup, space.w_None):
         # default to the current local time
-        tt = rffi.r_time_t(pytime.time())
+        tt = rffi.r_time_t(int(pytime.time()))
         t_ref = lltype.malloc(rffi.TIME_TP.TO, 1, flavor='raw')
         t_ref[0] = tt
         pbuf = c_localtime(t_ref)


More information about the pypy-commit mailing list