diff options
author | Benjamin Peterson <benjamin@python.org> | 2012-04-09 14:53:07 -0400 |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2012-04-09 14:53:07 -0400 |
commit | f6622c8a3e6bdf92778359417d0fa6c3e6bda909 (patch) | |
tree | 8d5b8ae0a7abf08597ec07a9f60de2e13ef006bc /Objects/unicodeobject.c | |
parent | 7fddb4b2f650208b9667f000b37603ee651c58e7 (diff) | |
download | cpython-git-f6622c8a3e6bdf92778359417d0fa6c3e6bda909.tar.gz |
fix build without Py_DEBUG and DNDEBUG (closes #14509)
Diffstat (limited to 'Objects/unicodeobject.c')
-rw-r--r-- | Objects/unicodeobject.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 2ec878f916..341114f943 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -7341,7 +7341,9 @@ unicode_hash(PyUnicodeObject *self) Py_UNICODE *p; long x; +#ifdef Py_DEBUG assert(_Py_HashSecret_Initialized); +#endif if (self->hash != -1) return self->hash; len = Py_SIZE(self); |