[pypy-commit] pypy default: fix the case when alias is too small

fijal noreply at buildbot.pypy.org
Mon Mar 30 17:40:37 CEST 2015


Author: Maciej Fijalkowski <fijall at gmail.com>
Branch: 
Changeset: r76640:0f6bac0956ac
Date: 2015-03-30 17:40 +0200
http://bitbucket.org/pypy/pypy/changeset/0f6bac0956ac/

Log:	fix the case when alias is too small

diff --git a/pypy/module/_hashlib/interp_hashlib.py b/pypy/module/_hashlib/interp_hashlib.py
--- a/pypy/module/_hashlib/interp_hashlib.py
+++ b/pypy/module/_hashlib/interp_hashlib.py
@@ -22,7 +22,7 @@
     # to have a its own definition of alias as the resulting list
     # still contains duplicate and alternate names for several
     # algorithms.
-    if obj_name[0].c_alias:
+    if rffi.cast(lltype.Signed, obj_name[0].c_alias):
         return
     try:
         space = global_name_fetcher.space


More information about the pypy-commit mailing list