Kaydet (Commit) f51c384a authored tarafından Benjamin Peterson's avatar Benjamin Peterson

fix build without Py_DEBUG and DNDEBUG (closes #14509)

üst eee76903
......@@ -1262,7 +1262,9 @@ string_hash(PyStringObject *a)
register unsigned char *p;
register long x;
#ifdef Py_DEBUG
assert(_Py_HashSecret_Initialized);
#endif
if (a->ob_shash != -1)
return a->ob_shash;
len = Py_SIZE(a);
......
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment