diff --git a/src/mathed/ChangeLog b/src/mathed/ChangeLog index db5622f572..560261bfad 100644 --- a/src/mathed/ChangeLog +++ b/src/mathed/ChangeLog @@ -1,3 +1,8 @@ +2005-02-14 Angus Leeming + + * math_rootinset.C (idxUpDown): Silence an MSVC compiler warning + by making the code more transparent. + 2005-02-12 Georg Baum * math_gridinset.C (halign): fix '|' to the right of the last column diff --git a/src/mathed/math_rootinset.C b/src/mathed/math_rootinset.C index 646cbfa789..8822ae1bf5 100644 --- a/src/mathed/math_rootinset.C +++ b/src/mathed/math_rootinset.C @@ -82,7 +82,7 @@ void MathRootInset::normalize(NormalStream & os) const bool MathRootInset::idxUpDown(LCursor & cur, bool up) const { - bool target = !up; // up ? 0 : 1; + LCursor::idx_type const target = up ? 0 : 1; if (cur.idx() == target) return false; cur.idx() = target;