Commit 0f6b216a authored by JINMEI Tatuya's avatar JINMEI Tatuya
Browse files

[1298] do not assume return value of PyBool_Check as (C++) bool; clang

complains about it.
parent ac552055
......@@ -286,7 +286,7 @@ Name_toText(s_Name* self, PyObject* args) {
if (PyArg_ParseTuple(args, "|O", &omit_final_dot_obj)) {
bool omit_final_dot = false;
if (omit_final_dot_obj != NULL) {
if (PyBool_Check(omit_final_dot_obj)) {
if (PyBool_Check(omit_final_dot_obj) != 0) {
omit_final_dot = (omit_final_dot_obj == Py_True);
} else {
PyErr_SetString(PyExc_TypeError,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment