summaryrefslogtreecommitdiff
path: root/src/pugixml.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/pugixml.cpp')
-rw-r--r--src/pugixml.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/pugixml.cpp b/src/pugixml.cpp
index 2e17fae..a6160e3 100644
--- a/src/pugixml.cpp
+++ b/src/pugixml.cpp
@@ -1953,12 +1953,12 @@ namespace pugi
#ifdef __BORLANDC__
bool operator&&(const xml_attribute& lhs, bool rhs)
{
- return lhs ? rhs : false;
+ return (bool)lhs && rhs;
}
bool operator||(const xml_attribute& lhs, bool rhs)
{
- return lhs ? true : rhs;
+ return (bool)lhs || rhs;
}
#endif
@@ -2720,12 +2720,12 @@ namespace pugi
#ifdef __BORLANDC__
bool operator&&(const xml_node& lhs, bool rhs)
{
- return lhs ? rhs : false;
+ return (bool)lhs && rhs;
}
bool operator||(const xml_node& lhs, bool rhs)
{
- return lhs ? true : rhs;
+ return (bool)lhs || rhs;
}
#endif