fix build without Py_DEBUG and DNDEBUG (closes #14509)

This commit is contained in:
Benjamin Peterson 2012-04-09 14:53:07 -04:00
parent eee7690315
commit f51c384a0a
2 changed files with 4 additions and 0 deletions

View file

@ -6538,7 +6538,9 @@ unicode_hash(PyUnicodeObject *self)
register Py_UNICODE *p;
register long x;
#ifdef Py_DEBUG
assert(_Py_HashSecret_Initialized);
#endif
if (self->hash != -1)
return self->hash;
len = PyUnicode_GET_SIZE(self);