summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2019-10-10 07:32:13 (GMT)
committerGitHub <noreply@github.com>2019-10-10 07:32:13 (GMT)
commita5447735c334a041ee2ffdeb5c7e13d7d4502ea2 (patch)
treee8612be99a8cc5ab87d1c903c860f36c702dabe4 /Include
parent09895c27cd8ff60563a794016e8c099bc897cc74 (diff)
downloadcpython-a5447735c334a041ee2ffdeb5c7e13d7d4502ea2.zip
cpython-a5447735c334a041ee2ffdeb5c7e13d7d4502ea2.tar.gz
cpython-a5447735c334a041ee2ffdeb5c7e13d7d4502ea2.tar.bz2
bpo-38392: Only declare visit_validate() if Py_DEBUG is defined (GH-16689)
bpo-38392, bpo-38426: Fix a compiler warning in gcmodule.c. Fix also a typo in PYMEM_DEADBYTE macro comment.
Diffstat (limited to 'Include')
-rw-r--r--Include/internal/pycore_pymem.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Include/internal/pycore_pymem.h b/Include/internal/pycore_pymem.h
index d61ff6e..535f99e 100644
--- a/Include/internal/pycore_pymem.h
+++ b/Include/internal/pycore_pymem.h
@@ -162,7 +162,7 @@ PyAPI_FUNC(int) _PyMem_SetDefaultAllocator(
- PYMEM_DEADBYTE dead (newly freed) memory
- PYMEM_FORBIDDENBYTE: untouchable bytes at each end of a block
- Byte patterns 0xCB, 0xBB and 0xFB have been replaced with 0xCD, 0xDD and
+ Byte patterns 0xCB, 0xDB and 0xFB have been replaced with 0xCD, 0xDD and
0xFD to use the same values than Windows CRT debug malloc() and free().
If modified, _PyMem_IsPtrFreed() should be updated as well. */
#define PYMEM_CLEANBYTE 0xCD