Browse Source

fix for problem found in solaris build, use "H" (unsigned short) instead of "I" (unsigned int) in parsetuple

git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@2377 e5f2f494-b856-4b98-b285-d166d9295462
Jelte Jansen 15 years ago
parent
commit
359d1f3354
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/lib/dns/python/message_python.cc

+ 2 - 2
src/lib/dns/python/message_python.cc

@@ -1284,7 +1284,7 @@ Message_getUDPSize(s_Message* self) {
 static PyObject*
 static PyObject*
 Message_setUDPSize(s_Message* self, PyObject* args) {
 Message_setUDPSize(s_Message* self, PyObject* args) {
     uint16_t size;
     uint16_t size;
-    if (!PyArg_ParseTuple(args, "I", &size)) {
+    if (!PyArg_ParseTuple(args, "H", &size)) {
         return (NULL);
         return (NULL);
     }
     }
     try {
     try {
@@ -1307,7 +1307,7 @@ Message_getQid(s_Message* self) {
 static PyObject*
 static PyObject*
 Message_setQid(s_Message* self, PyObject* args) {
 Message_setQid(s_Message* self, PyObject* args) {
     uint16_t id;
     uint16_t id;
-    if (!PyArg_ParseTuple(args, "I", &id)) {
+    if (!PyArg_ParseTuple(args, "H", &id)) {
         return (NULL);
         return (NULL);
     }
     }
     try {
     try {