]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-101819: Fix inverted debug preprocessor check in winconsoleio.c (#104388)
authorErlend E. Aasland <erlend.aasland@protonmail.com>
Thu, 11 May 2023 13:01:05 +0000 (15:01 +0200)
committerGitHub <noreply@github.com>
Thu, 11 May 2023 13:01:05 +0000 (13:01 +0000)
Modules/_io/winconsoleio.c

index f341cb238ce85e2dea3c3ebaf32b2930b4be9f04..d65e247737a07105ed0797faca6ebb9cc1f7dbe0 100644 (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