Author: Maciej Fijalkowski <[email protected]>
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
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to