gh-101819: Fix inverted debug preprocessor check in winconsoleio.c (#104388)

This commit is contained in:
Erlend E. Aasland 2023-05-11 15:01:05 +02:00 committed by GitHub
parent 1670729383
commit ddc0e70a32
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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