diff --git a/src/CurveCreator/CurveCreator_Curve.hxx b/src/CurveCreator/CurveCreator_Curve.hxx index b7e9bcfde..878072f0e 100644 --- a/src/CurveCreator/CurveCreator_Curve.hxx +++ b/src/CurveCreator/CurveCreator_Curve.hxx @@ -233,7 +233,7 @@ public: //! A virtual method. const CurveCreator_ISection* getSection(const int theSectionIndex) const { - if (theSectionIndex >= 0 && theSectionIndex < mySections.size()) + if (theSectionIndex >= 0 && theSectionIndex < (int)mySections.size()) { return (CurveCreator_ISection*)mySections[theSectionIndex]; }