diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2015-10-09 00:52:16 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2015-10-09 00:52:16 (GMT) |
commit | b13b97d3b881daaab8f3bf32cc851eac9b895c52 (patch) | |
tree | c79427ca0b6c53f488abc587b004f0e1012baa42 | |
parent | 0016507c168fa942d7856bdef371cd8d494b140b (diff) | |
download | cpython-b13b97d3b881daaab8f3bf32cc851eac9b895c52.zip cpython-b13b97d3b881daaab8f3bf32cc851eac9b895c52.tar.gz cpython-b13b97d3b881daaab8f3bf32cc851eac9b895c52.tar.bz2 |
Issue #25318: Fix compilation error
Replace "#if Py_DEBUG" with "#ifdef Py_DEBUG".
-rw-r--r-- | Objects/bytesobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/bytesobject.c b/Objects/bytesobject.c index 46322aa..56231a2 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; |