Skip to content

Commit 493f7cd

Browse files
pythongh-101819: Fix inverted debug preprocessor check in winconsoleio.c
1 parent e629ab6 commit 493f7cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/_io/winconsoleio.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ _io__WindowsConsoleIO___init___impl(winconsoleio *self, PyObject *nameobj,
267267
int fd_is_own = 0;
268268
HANDLE handle = NULL;
269269

270-
#ifdef NDEBUG
270+
#ifndef NDEBUG
271271
_PyIO_State *state = find_io_state_by_def(Py_TYPE(self));
272272
assert(PyObject_TypeCheck(self, state->PyWindowsConsoleIO_Type));
273273
#endif

0 commit comments

Comments
 (0)