From f402e922f36a1f5fb5cc8fd87022761c6ee68c20 Mon Sep 17 00:00:00 2001 From: Christian Heimes Date: Thu, 3 Jan 2013 09:21:55 +0100 Subject: Issue #16847: Fixed improper use of _PyUnicode_CheckConsistency() in non-pydebug builds. Several extension modules now compile cleanly when assert()s are enabled in standard builds (-DDEBUG flag). --- Modules/sha512module.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Modules/sha512module.c') diff --git a/Modules/sha512module.c b/Modules/sha512module.c index 88f8a64d06..5536fd5c1c 100644 --- a/Modules/sha512module.c +++ b/Modules/sha512module.c @@ -532,7 +532,9 @@ SHA512_hexdigest(SHAobject *self, PyObject *unused) c = (digest[i] & 0xf); hex_digest[j++] = Py_hexdigits[c]; } +#ifdef Py_DEBUG assert(_PyUnicode_CheckConsistency(retval, 1)); +#endif return retval; } -- cgit v1.2.1