From e4cb7fe829fe91306e72a83a9b4d545a651f3f06 Mon Sep 17 00:00:00 2001 From: David Rose Date: Tue, 21 Jul 2009 00:46:07 +0000 Subject: [PATCH] very minor --- direct/src/plugin/binaryXml.cxx | 8 ++++---- direct/src/plugin/p3d_plugin.h | 7 ++++--- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/direct/src/plugin/binaryXml.cxx b/direct/src/plugin/binaryXml.cxx index dc7464ead3..d0dbcb0747 100644 --- a/direct/src/plugin/binaryXml.cxx +++ b/direct/src/plugin/binaryXml.cxx @@ -136,7 +136,7 @@ read_xml_node(istream &in) { // Read the element attributes. TiXmlElement *xelement = xnode->ToElement(); assert(xelement != NULL); - bool got_attrib = (bool)in.get(); + bool got_attrib = (bool)(in.get() != 0); while (got_attrib && in && !in.eof()) { // We have an attribute. @@ -166,12 +166,12 @@ read_xml_node(istream &in) { xelement->SetAttribute(name, value); - got_attrib = (bool)in.get(); + got_attrib = (bool)(in.get() != 0); } } // Now read all of the children. - bool got_child = (bool)in.get(); + bool got_child = (bool)(in.get() != 0); while (got_child && in && !in.eof()) { // We have a child. @@ -180,7 +180,7 @@ read_xml_node(istream &in) { xnode->LinkEndChild(xchild); } - got_child = (bool)in.get(); + got_child = (bool)(in.get() != 0); } return xnode; diff --git a/direct/src/plugin/p3d_plugin.h b/direct/src/plugin/p3d_plugin.h index 2697c1b979..c6adc037f2 100644 --- a/direct/src/plugin/p3d_plugin.h +++ b/direct/src/plugin/p3d_plugin.h @@ -75,9 +75,10 @@ extern "C" { /* This symbol serves to validate that runtime and compile-time -libraries match. It should be passed to P3D_initialize() (below). -This number will be incremented whenever there are changes to any of -the interface specifications defined in this header file. */ + libraries match. It should be passed to P3D_initialize() + (below). This number will be incremented whenever there are changes + to any of the interface specifications defined in this header + file. */ #define P3D_API_VERSION 4 /************************ GLOBAL FUNCTIONS **************************/