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 | f51c384a0af9cc233b52ea98313e312dcb414dce (patch) | |
tree | aab1363570407b34cca1ffc47bcbacba08145393 /Objects/stringobject.c | |
parent | eee769031570064e073f1b05762521883c2a0f5d (diff) | |
download | cpython-git-f51c384a0af9cc233b52ea98313e312dcb414dce.tar.gz |
fix build without Py_DEBUG and DNDEBUG (closes #14509)
Diffstat (limited to 'Objects/stringobject.c')
-rw-r--r-- | Objects/stringobject.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Objects/stringobject.c b/Objects/stringobject.c index 982679258b..ab377dd7a2 100644 --- a/Objects/stringobject.c +++ b/Objects/stringobject.c @@ -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); |