MantisBT
Mantis Bug Tracker Workflow

View Revisions: Issue #22685 All Revisions ] Back to Issue ]
Summary 0022685: Missing parentheses around trigraph operator
Revision 2011-09-21 13:49 by szy
Description A thorough review of compiler warnings emitted when building OpenCascade
exhibits bugs in the following files:
ros/src/Aspect/Aspect_MarkMapEntry.cxx
ros/src/Aspect/Aspect_TypeMapEntry.cxx
ros/src/Aspect/Aspect_WidthMapEntry.cxx
ros/src/TDataStd/TDataStd_ExtStringArray.cxx
ros/src/TDataStd/TDataStd_IntPackedMap.cxx
ros/src/TDataStd/TDataStd_IntegerArray.cxx
ros/src/TDataStd/TDataStd_RealArray.cxx

A patch is attached, all fixes are similar to this one:
--- a/src/TDataStd/TDataStd_RealArray.cxx
+++ b/src/TDataStd/TDataStd_RealArray.cxx
@@ -242,7 +242,7 @@ Standard_OStream& TDataStd_RealArray::Dump
(Standard_OStream& anOS) const
for(i = lower; i<=upper; i++)
anOS << " " <<myValue->Value(i);
}
- anOS << " Delta is " << myIsDelta ? "ON":"OFF";
+ anOS << " Delta is " << (myIsDelta ? "ON":"OFF");
anOS << endl;
return anOS;
}
Revision 2011-07-25 11:02 by szy
Description A thorough review of compiler warnings emitted when building OpenCascade
exhibits bugs in the following files:
ros/src/Aspect/Aspect_MarkMapEntry.cxx
ros/src/Aspect/Aspect_TypeMapEntry.cxx
ros/src/Aspect/Aspect_WidthMapEntry.cxx
ros/src/TDataStd/TDataStd_ExtStringArray.cxx
ros/src/TDataStd/TDataStd_IntPackedMap.cxx
ros/src/TDataStd/TDataStd_IntegerArray.cxx
ros/src/TDataStd/TDataStd_RealArray.cxx

A patch is attached, all fixes are similar to this one:
--- a/src/TDataStd/TDataStd_RealArray.cxx
+++ b/src/TDataStd/TDataStd_RealArray.cxx
@@ -242,7 +242,7 @@ Standard_OStream& TDataStd_RealArray::Dump
(Standard_OStream& anOS) const
for(i = lower; i<=upper; i++)
anOS << " " <<myValue->Value(i);
}
- anOS << " Delta is " << myIsDelta ? "ON":"OFF";
+ anOS << " Delta is " << (myIsDelta ? "ON":"OFF");
anOS << endl;
return anOS;
}


Copyright © 2000 - 2019 MantisBT Team
Powered by Mantis Bugtracker