Commit 19df6c8b authored by Jelte Jansen's avatar Jelte Jansen
Browse files

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

git-svn-id: svn:// e5f2f494-b856-4b98-b285-d166d9295462
parent 359d1f33
......@@ -167,7 +167,7 @@ static PyObject*
MessageRenderer_setLengthLimit(s_MessageRenderer* self,
PyObject* args)
size_t lengthlimit;
unsigned int lengthlimit;
if (!PyArg_ParseTuple(args, "I", &lengthlimit)) {
return (NULL);
......@@ -367,12 +367,12 @@ Name_destroy(s_Name* self) {
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) {
"name index out of range");
Supports Markdown
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