Author: Armin Rigo <[email protected]>
Branch: release-2.5.x
Changeset: r76642:af9d5af2e8e3
Date: 2015-03-30 18:08 +0200
http://bitbucket.org/pypy/pypy/changeset/af9d5af2e8e3/

Log:    fix the case when alias is too small (grafted from
        0f6bac0956ac1fee924f863d0a0594f6b5441f95)

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