[pypy-commit] pypy release-2.5.x: fix the case when alias is too small
arigo
noreply at buildbot.pypy.org
Mon Mar 30 18:08:04 CEST 2015
Author: Armin Rigo <arigo at tunes.org>
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
More information about the pypy-commit
mailing list