Skip to content

Commit

Permalink
gh-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 1670729 commit ddc0e70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Modules/_io/winconsoleio.c
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 ddc0e70

Please sign in to comment.