diff options
author | Christian Heimes <christian@cheimes.de> | 2013-01-03 09:21:55 +0100 |
---|---|---|
committer | Christian Heimes <christian@cheimes.de> | 2013-01-03 09:21:55 +0100 |
commit | 69d9b799be9fed495ba5e881fd86179fbeaed383 (patch) | |
tree | 7dbeaef754468c82b20cec44595ac9e710fe9c1c /Modules/sha256module.c | |
parent | 4460d8cf8f09cc7ac186388086c08eefa7900cce (diff) | |
download | cpython-69d9b799be9fed495ba5e881fd86179fbeaed383.tar.gz |
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).
Diffstat (limited to 'Modules/sha256module.c')
-rw-r--r-- | Modules/sha256module.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/sha256module.c b/Modules/sha256module.c index 76d91afda3..9f6b41639c 100644 --- a/Modules/sha256module.c +++ b/Modules/sha256module.c @@ -466,7 +466,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; } |