BIND 10 trac1298, updated. 0f6b216a89583edd445942386df5a388b39149d5 [1298] do not assume return value of PyBool_Check as (C++) bool; clang complains about it.

BIND 10 source code commits bind10-changes at lists.isc.org
Mon Nov 7 17:06:41 UTC 2011


The branch, trac1298 has been updated
       via  0f6b216a89583edd445942386df5a388b39149d5 (commit)
      from  ac552055bc8a4d996a0c24eb5f13d01667a3d77a (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 0f6b216a89583edd445942386df5a388b39149d5
Author: JINMEI Tatuya <jinmei at isc.org>
Date:   Mon Nov 7 09:06:05 2011 -0800

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

-----------------------------------------------------------------------

Summary of changes:
 src/lib/dns/python/name_python.cc |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

-----------------------------------------------------------------------
diff --git a/src/lib/dns/python/name_python.cc b/src/lib/dns/python/name_python.cc
index c511570..ce556df 100644
--- a/src/lib/dns/python/name_python.cc
+++ b/src/lib/dns/python/name_python.cc
@@ -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,




More information about the bind10-changes mailing list