[pypy-svn] r48047 - pypy/dist/pypy/lang/smalltalk

tverwaes at codespeak.net tverwaes at codespeak.net
Fri Oct 26 13:57:22 CEST 2007


Author: tverwaes
Date: Fri Oct 26 13:57:22 2007
New Revision: 48047

Modified:
   pypy/dist/pypy/lang/smalltalk/primitives.py
Log:
make sure we have ints in MILLISECOND


Modified: pypy/dist/pypy/lang/smalltalk/primitives.py
==============================================================================
--- pypy/dist/pypy/lang/smalltalk/primitives.py	(original)
+++ pypy/dist/pypy/lang/smalltalk/primitives.py	Fri Oct 26 13:57:22 2007
@@ -514,7 +514,7 @@
 def func(interp, w_arg):
     import time
     import math
-    return wrap_int(math.fmod(time.time()*1000,1073741823/2))
+    return wrap_int(int(math.fmod(time.time()*1000,1073741823/2)))
 
 # ___________________________________________________________________________
 # Boolean Primitives



More information about the Pypy-commit mailing list