[pypy-commit] pypy improve-vmprof-testing: translation fix
arigo
pypy.commits at gmail.com
Sun Aug 7 15:25:09 EDT 2016
Author: Armin Rigo <arigo at tunes.org>
Branch: improve-vmprof-testing
Changeset: r86069:690fd43896cd
Date: 2016-08-07 20:33 +0100
http://bitbucket.org/pypy/pypy/changeset/690fd43896cd/
Log: translation fix
diff --git a/rpython/rlib/rvmprof/rvmprof.py b/rpython/rlib/rvmprof/rvmprof.py
--- a/rpython/rlib/rvmprof/rvmprof.py
+++ b/rpython/rlib/rvmprof/rvmprof.py
@@ -184,6 +184,8 @@
def decorated_function(*args):
unique_id = get_code_fn(*args)._vmprof_unique_id
+ unique_id = rffi.cast(lltype.Signed, unique_id)
+ # ^^^ removes the "known non-negative" hint for annotation
if not jit.we_are_jitted():
x = enter_code(unique_id)
try:
More information about the pypy-commit
mailing list