mirror of
https://github.com/AdaCore/cpython.git
synced 2026-02-12 12:57:15 -08:00
fix build without Py_DEBUG and DNDEBUG (closes #14509)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user