[issue24999] Segfault in test_re.test_sre_character_class_literals() when Python is compiled by ICC
Serhiy Storchaka
report at bugs.python.org
Fri Sep 18 17:33:36 CEST 2015
Serhiy Storchaka added the comment:
I'm fine with both variants: (LONG_MAX >> PyLong_SHIFT) >> PyLong_SHIFT and SIZEOF_LONG*CHAR_BIT-1 >= 2*PyLong_SHIFT (the latter can be simplified to 8*SIZEOF_LONG > 2*PyLong_SHIFT). A comment on the next line explains the condition, it can be extended if needed. I'm fine with Victor's patch too.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue24999>
_______________________________________
More information about the Python-bugs-list
mailing list