[svn] commit: r3060 - /trunk/src/lib/dns/python/opcode_python.cc

BIND 10 source code commits bind10-changes at lists.isc.org
Wed Sep 29 04:05:26 UTC 2010


Author: jinmei
Date: Wed Sep 29 04:05:25 2010
New Revision: 3060

Log:
corrected a variable type for python "b", i.e., from uint16 to uint8.
this fixes the recent build failure on sparc:
http://bind10.isc.org/~tester/builder//BIND10/20100929022000-Solaris10-sparc/logs/unittests.out

directly committing to trunk, as I believe it's quite trivial and it's a
sort of urgent care fix.

Modified:
    trunk/src/lib/dns/python/opcode_python.cc

Modified: trunk/src/lib/dns/python/opcode_python.cc
==============================================================================
--- trunk/src/lib/dns/python/opcode_python.cc (original)
+++ trunk/src/lib/dns/python/opcode_python.cc Wed Sep 29 04:05:25 2010
@@ -159,7 +159,7 @@
 
 int
 Opcode_init(s_Opcode* const self, PyObject* args) {
-    uint16_t code = 0;
+    uint8_t code = 0;
     if (PyArg_ParseTuple(args, "b", &code)) {
         try {
             self->opcode = new Opcode(code);




More information about the bind10-changes mailing list