Vajrasky Kok added the comment:
Victor, your patch fixes most of the pesky warnings. However you left one
warning left (at least in Mac OS X 10.9.4).
Objects/unicodeobject.c:4831:43: warning: comparison of integers of different
signs: 'unsigned long' and 'long' [-Wsign-compare]
if (PY_SSIZE_T_MAX / sizeof(wchar_t) < (size + 1))
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~
Maybe we can fix it by doing this:
if (PY_SSIZE_T_MAX / (Py_ssize_t)sizeof(wchar_t) < (size + 1))
return NULL;
----------
nosy: +vajrasky
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue22156>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com