[svn] commit: r2378 - in /trunk/src/lib/dns/python: messagerenderer_python.cc name_python.cc

BIND 10 source code commits bind10-changes at lists.isc.org
Wed Jun 30 22:42:35 UTC 2010


Author: jelte
Date: Wed Jun 30 22:42:35 2010
New Revision: 2378

Log:
fix for the freebsd unit test, unsigned int and "I"

Modified:
    trunk/src/lib/dns/python/messagerenderer_python.cc
    trunk/src/lib/dns/python/name_python.cc

Modified: trunk/src/lib/dns/python/messagerenderer_python.cc
==============================================================================
--- trunk/src/lib/dns/python/messagerenderer_python.cc (original)
+++ trunk/src/lib/dns/python/messagerenderer_python.cc Wed Jun 30 22:42:35 2010
@@ -167,7 +167,7 @@
 MessageRenderer_setLengthLimit(s_MessageRenderer* self,
                                PyObject* args)
 {
-    size_t lengthlimit;
+    unsigned int lengthlimit;
     if (!PyArg_ParseTuple(args, "I", &lengthlimit)) {
         return (NULL);
     }

Modified: trunk/src/lib/dns/python/name_python.cc
==============================================================================
--- trunk/src/lib/dns/python/name_python.cc (original)
+++ trunk/src/lib/dns/python/name_python.cc Wed Jun 30 22:42:35 2010
@@ -367,12 +367,12 @@
 
 static PyObject*
 Name_at(s_Name* self, PyObject* args) {
-    size_t pos;
-    if (!PyArg_ParseTuple(args, "i", &pos)) {
+    unsigned int pos;
+    if (!PyArg_ParseTuple(args, "I", &pos)) {
         return (NULL);
     }
     try {
-        return (Py_BuildValue("i", self->name->at(pos)));
+        return (Py_BuildValue("I", self->name->at(pos)));
     } catch (isc::OutOfRange oor) {
         PyErr_SetString(PyExc_IndexError,
                         "name index out of range");




More information about the bind10-changes mailing list