Skip to content

Commit ddc0e70

Browse files
gh-101819: Fix inverted debug preprocessor check in winconsoleio.c (#104388)
1 parent 1670729 commit ddc0e70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/_io/winconsoleio.c

+1-1
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)