Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b13b97d

Browse files
committed
Issue #25318: Fix compilation error
Replace "#if Py_DEBUG" with "#ifdef Py_DEBUG".
1 parent 0016507 commit b13b97d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Objects/bytesobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3892,7 +3892,7 @@ _PyBytesWriter_Alloc(_PyBytesWriter *writer, Py_ssize_t size)
38923892
assert(size >= 0);
38933893

38943894
writer->use_stack_buffer = 1;
3895-
#if Py_DEBUG
3895+
#ifdef Py_DEBUG
38963896
/* the last byte is reserved, it must be '\0' */
38973897
writer->stack_buffer[sizeof(writer->stack_buffer) - 1] = 0;
38983898
writer->allocated = sizeof(writer->stack_buffer) - 1;

0 commit comments

Comments
 (0)