diff options
Diffstat (limited to 'gdb/python/py-disasm.c')
-rw-r--r-- | gdb/python/py-disasm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/python/py-disasm.c b/gdb/python/py-disasm.c index 7b64436..58e2efe 100644 --- a/gdb/python/py-disasm.c +++ b/gdb/python/py-disasm.c @@ -650,7 +650,7 @@ disasmpy_set_enabled (PyObject *self, PyObject *args, PyObject *kw) return nullptr; } - python_print_insn_enabled = PyObject_IsTrue (newstate); + python_print_insn_enabled = newstate == Py_True; Py_RETURN_NONE; } |