mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
Issue #25318: Fix compilation error
Replace "#if Py_DEBUG" with "#ifdef Py_DEBUG".
This commit is contained in:
parent
0016507c16
commit
b13b97d3b8
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue