diff Objects/stringobject.c @ 76189:a11a2bbd8241 2.7

fix build without Py_DEBUG and DNDEBUG (closes #14509)
author Benjamin Peterson <benjamin@python.org>
date Mon, 09 Apr 2012 14:53:07 -0400
parents 40b684215b4f
children 2fbee0b741f7
line wrap: on
line diff
--- a/Objects/stringobject.c	Thu Mar 22 23:32:23 2012 -0400
+++ b/Objects/stringobject.c	Mon Apr 09 14:53:07 2012 -0400
@@ -1262,7 +1262,9 @@
     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);