Parcourir la 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 il y a 15 ans
Parent
commit
359d1f3354
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  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*
 Message_setUDPSize(s_Message* self, PyObject* args) {
     uint16_t size;
-    if (!PyArg_ParseTuple(args, "I", &size)) {
+    if (!PyArg_ParseTuple(args, "H", &size)) {
         return (NULL);
     }
     try {
@@ -1307,7 +1307,7 @@ Message_getQid(s_Message* self) {
 static PyObject*
 Message_setQid(s_Message* self, PyObject* args) {
     uint16_t id;
-    if (!PyArg_ParseTuple(args, "I", &id)) {
+    if (!PyArg_ParseTuple(args, "H", &id)) {
         return (NULL);
     }
     try {