# HG changeset patch # User Chris Cannam # Date 1396614556 -3600 # Node ID f2d747d234d5f36d15d4f727ee6e7be2b1962a9e # Parent 5d3ab532d8afd47525ea75ee26fe9cd5b9a16f93 Avoid compiler warnings diff -r 5d3ab532d8af -r f2d747d234d5 cpp-qm-dsp/CQInterpolated.cpp --- a/cpp-qm-dsp/CQInterpolated.cpp Fri Apr 04 12:33:15 2014 +0100 +++ b/cpp-qm-dsp/CQInterpolated.cpp Fri Apr 04 13:29:16 2014 +0100 @@ -148,7 +148,7 @@ int secondFullHeight = -1; for (int i = 0; i < width; ++i) { - if (m_buffer[i].size() == height) { + if ((int)m_buffer[i].size() == height) { if (firstFullHeight == -1) { firstFullHeight = i; } else if (secondFullHeight == -1) { @@ -201,7 +201,7 @@ if (x0 >= x1) { throw std::logic_error("x0 >= x1"); } - if (x1 >= g.size()) { + if (x1 >= (int)g.size()) { throw std::logic_error("x1 >= g.size()"); } if (g[x0].size() != g[x1].size()) {