Skip to content

Commit 57c09c0

Browse files
asvetlovwebknjaz
andauthored
Fix the library building in debug mode (#1144)
Closes #1143 --------- Co-authored-by: 🇺🇦 Sviatoslav Sydorenko (Святослав Сидоренко) <[email protected]>
1 parent fe79f97 commit 57c09c0

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

CHANGES/1144.bugfix.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fixed building the library in debug mode.

multidict/_multilib/state.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ PyType_GetModuleByDef(PyTypeObject *tp, PyModuleDef *def)
6565
assert(mro != NULL);
6666
assert(PyTuple_Check(mro));
6767
assert(PyTuple_GET_SIZE(mro) >= 1);
68-
assert(PyTuple_GET_ITEM(mro, 0) == (PyObject *)type);
68+
assert(PyTuple_GET_ITEM(mro, 0) == (PyObject *)tp);
6969

7070
Py_ssize_t n = PyTuple_GET_SIZE(mro);
7171
for (Py_ssize_t i = 1; i < n; i++) {

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
NO_EXTENSIONS = True
1111

1212
CFLAGS = ["-O3"]
13-
# CFLAGS = ["-O0", "-g3", "-DDEBUG"]
13+
# CFLAGS = ["-O0", "-g3", "-UNDEBUG"]
1414
if platform.system() != "Windows":
1515
CFLAGS.extend(
1616
[

0 commit comments

Comments
 (0)