[issue1646068] Dict lookups fail if sizeof(Py_ssize_t) < sizeof(long)
Alexander Belopolsky
report at bugs.python.org
Wed Jul 14 19:27:09 CEST 2010
Alexander Belopolsky <belopolsky at users.sourceforge.net> added the comment:
Responding to Antoine question, I don't understand how you would use a union here. Certainly you cannot define Py_dicthashcache_t as a union of long and Py_ssize_t because it will not be able to easily assign long or Py_ssize_t values to it. I don't think ANSI C allows a cast from integer type to a union.
I am OK with the patch, but if this goes into 2.7/3.x, I think the same change should be applied to the set type.
----------
nosy: +belopolsky
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue1646068>
_______________________________________
More information about the Python-bugs-list
mailing list