From: Victor Stinner Date: Fri, 9 Oct 2015 00:52:16 +0000 (+0200) Subject: Issue #25318: Fix compilation error X-Git-Tag: v3.6.0a1~1296 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b13b97d3b881daaab8f3bf32cc851eac9b895c52;p=thirdparty%2FPython%2Fcpython.git Issue #25318: Fix compilation error Replace "#if Py_DEBUG" with "#ifdef Py_DEBUG". --- diff --git a/Objects/bytesobject.c b/Objects/bytesobject.c index 46322aadf041..56231a222c35 100644 --- a/Objects/bytesobject.c +++ b/Objects/bytesobject.c @@ -3892,7 +3892,7 @@ _PyBytesWriter_Alloc(_PyBytesWriter *writer, Py_ssize_t size) 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;