changeset 77:f2d747d234d5

Avoid compiler warnings
author Chris Cannam <c.cannam@qmul.ac.uk>
date Fri, 04 Apr 2014 13:29:16 +0100
parents 5d3ab532d8af
children 4a3005934850
files cpp-qm-dsp/CQInterpolated.cpp
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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()) {