qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tr...@apache.org
Subject svn commit: r691755 - /incubator/qpid/trunk/qpid/cpp/managementgen/schema.py
Date Wed, 03 Sep 2008 20:10:45 GMT
Author: tross
Date: Wed Sep  3 13:10:45 2008
New Revision: 691755

URL: http://svn.apache.org/viewvc?rev=691755&view=rev
Log:
Disambiguated a mask-and-compare for the Fedora-9 compiler

Modified:
    incubator/qpid/trunk/qpid/cpp/managementgen/schema.py

Modified: incubator/qpid/trunk/qpid/cpp/managementgen/schema.py
URL: http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/cpp/managementgen/schema.py?rev=691755&r1=691754&r2=691755&view=diff
==============================================================================
--- incubator/qpid/trunk/qpid/cpp/managementgen/schema.py (original)
+++ incubator/qpid/trunk/qpid/cpp/managementgen/schema.py Wed Sep  3 13:10:45 2008
@@ -122,7 +122,7 @@
           stream.write ("        " + changeFlag + " = true;\n")
         stream.write ("    }\n")
         stream.write ("    inline bool isSet_" + varName + "() {\n")
-        stream.write ("        return presenceMask[presenceByte_%s] & presenceMask_%s
!= 0;\n" % (varName, varName))
+        stream.write ("        return (presenceMask[presenceByte_%s] & presenceMask_%s)
!= 0;\n" % (varName, varName))
         stream.write ("    }\n")
     elif self.accessor == "counter":
       stream.write ("    inline void inc_" + varName + " (" + self.cpp + " by = 1) {\n");



Mime
View raw message