[Python-checkins] cpython: Issue #25318: Fix compilation error

victor.stinner python-checkins at python.org
Thu Oct 8 20:52:38 EDT 2015


https://hg.python.org/cpython/rev/e9c1404d6bd9
changeset: 98607:e9c1404d6bd9
user: Victor Stinner <victor.stinner at gmail.com>
date: Fri Oct 09 02:52:16 2015 +0200
summary:
 Issue #25318: Fix compilation error
Replace "#if Py_DEBUG" with "#ifdef Py_DEBUG".
files:
 Objects/bytesobject.c | 2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Objects/bytesobject.c b/Objects/bytesobject.c
--- a/Objects/bytesobject.c
+++ b/Objects/bytesobject.c
@@ -3892,7 +3892,7 @@
 assert(size >= 0);
 
 writer->use_stack_buffer = 1;
-#if Py_DEBUG
+#ifdef Py_DEBUG
 /* the last byte is reserved, it must be '0円' */
 writer->stack_buffer[sizeof(writer->stack_buffer) - 1] = 0;
 writer->allocated = sizeof(writer->stack_buffer) - 1;
-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /