Skip to content

Commit

Permalink
pythongh-101819: Fix inverted debug preprocessor check in winconsoleio.c
Browse files Browse the repository at this point in the history
  • Loading branch information
erlend-aasland committed May 11, 2023
1 parent e629ab6 commit 493f7cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Modules/_io/winconsoleio.c
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ _io__WindowsConsoleIO___init___impl(winconsoleio *self, PyObject *nameobj,
int fd_is_own = 0;
HANDLE handle = NULL;

#ifdef NDEBUG
#ifndef NDEBUG
_PyIO_State *state = find_io_state_by_def(Py_TYPE(self));
assert(PyObject_TypeCheck(self, state->PyWindowsConsoleIO_Type));
#endif
Expand Down

0 comments on commit 493f7cd

Please sign in to comment.