summaryrefslogtreecommitdiffstats
path: root/Objects/bytesobject.c
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2012-04-09 18:53:07 (GMT)
committerBenjamin Peterson <benjamin@python.org>2012-04-09 18:53:07 (GMT)
commitf6622c8a3e6bdf92778359417d0fa6c3e6bda909 (patch)
tree8d5b8ae0a7abf08597ec07a9f60de2e13ef006bc /Objects/bytesobject.c
parent7fddb4b2f650208b9667f000b37603ee651c58e7 (diff)
downloadcpython-f6622c8a3e6bdf92778359417d0fa6c3e6bda909.zip
cpython-f6622c8a3e6bdf92778359417d0fa6c3e6bda909.tar.gz
cpython-f6622c8a3e6bdf92778359417d0fa6c3e6bda909.tar.bz2
fix build without Py_DEBUG and DNDEBUG (closes #14509)
Diffstat (limited to 'Objects/bytesobject.c')
-rw-r--r--Objects/bytesobject.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Objects/bytesobject.c b/Objects/bytesobject.c
index db93f37..a0c121e 100644
--- a/Objects/bytesobject.c
+++ b/Objects/bytesobject.c
@@ -896,7 +896,9 @@ bytes_hash(PyBytesObject *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);