diff --git a/Common/Field/src/MagFieldFast.cxx b/Common/Field/src/MagFieldFast.cxx index e652dffa396c5..5caad34d56dd4 100644 --- a/Common/Field/src/MagFieldFast.cxx +++ b/Common/Field/src/MagFieldFast.cxx @@ -238,7 +238,7 @@ bool MagFieldFast::Field(const math_utils::Point3D xyz, double bxyz[3]) bool MagFieldFast::GetSegment(float x, float y, float z, int& zSeg, int& rSeg, int& quadrant) const { // get segment of point location - const float zGridSpaceInv = 1.f / (kSolZMax * 2 / kNSolZRanges); + const float zGridSpaceInv = 1.f / (kSolZMax * 2 / (float)kNSolZRanges); zSeg = -1; if (z < kSolZMax) { if (z > -kSolZMax) { diff --git a/Utilities/DataCompression/test/DataGenerator.h b/Utilities/DataCompression/test/DataGenerator.h index 6c209f9007f6f..3fe0740ccbad8 100644 --- a/Utilities/DataCompression/test/DataGenerator.h +++ b/Utilities/DataCompression/test/DataGenerator.h @@ -154,8 +154,8 @@ class DataGenerator // pointer operator->() const {return &mValue;} // reference operator[](size_type n) const; - bool operator==(const self_type& other) { return mCount == other.mCount; } - bool operator!=(const self_type& other) { return not(*this == other); } + bool operator==(const self_type& other) const { return mCount == other.mCount; } + bool operator!=(const self_type& other) const { return not(*this == other); } private: const ContainerT& mParent;