commit | f51c384a0af9cc233b52ea98313e312dcb414dce | [log] [tgz] |
---|---|---|
author | Benjamin Peterson <benjamin@python.org> | Mon Apr 09 14:53:07 2012 -0400 |
committer | Benjamin Peterson <benjamin@python.org> | Mon Apr 09 14:53:07 2012 -0400 |
tree | aab1363570407b34cca1ffc47bcbacba08145393 | |
parent | eee769031570064e073f1b05762521883c2a0f5d [diff] [blame] |
fix build without Py_DEBUG and DNDEBUG (closes #14509)
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 4fb1aed..710bcf3 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c
@@ -6538,7 +6538,9 @@ 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);