From f51c384a0af9cc233b52ea98313e312dcb414dce Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Mon, 9 Apr 2012 14:53:07 -0400 Subject: fix build without Py_DEBUG and DNDEBUG (closes #14509) --- Objects/stringobject.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Objects/stringobject.c') 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); -- cgit v1.2.1