# HG changeset patch # User Chris Cannam # Date 1404286931 -3600 # Node ID 3be40cf40c492b9828c39fd8e6cf81995f462d96 # Parent 2481777d4c3e3e3907b9e5e931aba439b08f4130 Tidy diff -r 2481777d4c3e -r 3be40cf40c49 data/model/EditableDenseThreeDimensionalModel.cpp --- a/data/model/EditableDenseThreeDimensionalModel.cpp Wed Jun 18 18:30:19 2014 +0100 +++ b/data/model/EditableDenseThreeDimensionalModel.cpp Wed Jul 02 08:42:11 2014 +0100 @@ -287,7 +287,7 @@ { // See comment above m_trunc declaration in header - assert(int(index) < m_data.size()); + assert(index >= 0 && index < int(m_data.size())); Column c = m_data.at(index); if (index == 0) { return c; @@ -301,7 +301,7 @@ if (trunc < 0) { top = false; tdist = -trunc; } Column p = expandAndRetrieve(index - tdist); int psize = p.size(), csize = c.size(); - if (psize != int(m_yBinCount)) { + if (psize != m_yBinCount) { cerr << "WARNING: EditableDenseThreeDimensionalModel::expandAndRetrieve: Trying to expand from incorrectly sized column" << endl; } if (top) {