[pypy-commit] pypy rpython-hash: translation fixes

arigo pypy.commits at gmail.com
Tue Jan 31 07:00:20 EST 2017


Author: Armin Rigo <arigo at tunes.org>
Branch: rpython-hash
Changeset: r89851:be1d112df191
Date: 2017-01-31 12:59 +0100
http://bitbucket.org/pypy/pypy/changeset/be1d112df191/

Log:	translation fixes

diff --git a/rpython/rlib/rsiphash.py b/rpython/rlib/rsiphash.py
--- a/rpython/rlib/rsiphash.py
+++ b/rpython/rlib/rsiphash.py
@@ -88,7 +88,7 @@
         except Exception as e:
             os.write(2,
                 "%s: failed to get random numbers to initialize Python\n" %
-                (e.__class__.__name__,))
+                (str(e),))
             os._exit(1)
             raise   # makes the annotator happy
     select_random_seed(s)
diff --git a/rpython/rtyper/lltypesystem/rordereddict.py b/rpython/rtyper/lltypesystem/rordereddict.py
--- a/rpython/rtyper/lltypesystem/rordereddict.py
+++ b/rpython/rtyper/lltypesystem/rordereddict.py
@@ -523,6 +523,7 @@
 
 @jit.dont_look_inside
 def ll_call_insert_clean_function(d, hash, i):
+    assert i >= 0
     fun = d.lookup_function_no & FUNC_MASK
     if fun == FUNC_BYTE:
         ll_dict_store_clean(d, hash, i, TYPE_BYTE)


More information about the pypy-commit mailing list