Author: Antonio Cuni <[email protected]>
Branch:
Changeset: r94379:fbffeb3dc383
Date: 2018-04-18 13:27 +0000
http://bitbucket.org/pypy/pypy/changeset/fbffeb3dc383/
Log: fix llinterp debug_{start,stop} on 32bit
diff --git a/rpython/rlib/debug.py b/rpython/rlib/debug.py
--- a/rpython/rlib/debug.py
+++ b/rpython/rlib/debug.py
@@ -3,7 +3,7 @@
from rpython.rtyper.extregistry import ExtRegistryEntry
from rpython.rlib.objectmodel import we_are_translated, always_inline
-from rpython.rlib.rarithmetic import is_valid_int
+from rpython.rlib.rarithmetic import is_valid_int, r_longlong
from rpython.rtyper.extfunc import register_external
from rpython.rtyper.lltypesystem import lltype
from rpython.rtyper.lltypesystem import rffi
@@ -100,8 +100,8 @@
_log.debug_start(category)
if timestamp:
- return c
- return -42 # random undefined value
+ return r_longlong(c)
+ return r_longlong(-42) # random undefined value
def _debug_stop(category, timestamp):
c = int(time.clock() * 100)
@@ -111,8 +111,8 @@
_log.debug_stop(category)
if timestamp:
- return c
- return -42 # random undefined value
+ return r_longlong(c)
+ return r_longlong(-42) # random undefined value
class Entry(ExtRegistryEntry):
_about_ = _debug_start, _debug_stop
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit