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).
This commit is contained in:
Christian Heimes 2013-01-03 09:22:41 +01:00
commit 75e923fcf2
7 changed files with 16 additions and 0 deletions

View file

@ -456,7 +456,9 @@ SHA256_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;
}