Fix warning.
authorCarl Hetherington <carl@carlh.net>
Sun, 23 Oct 2011 21:31:21 +0000 (21:31 +0000)
committerCarl Hetherington <carl@carlh.net>
Sun, 23 Oct 2011 21:31:21 +0000 (21:31 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@10295 d708f5d6-7413-0410-9779-e7cbd77b26cf

gtk2_ardour/streamview.cc

index 10a9b916337f43a33abce1a979d8a05e406acb90..28905ee45f5a71af84a9870d5235b91e5d8ff56f 100644 (file)
@@ -532,7 +532,7 @@ StreamView::get_selectables (framepos_t start, framepos_t end, double top, doubl
                }
 
                int const ma = _layers - ((top - _trackview.y_position()) / c);
-               if (ma > _layers) {
+               if (ma > (int) _layers) {
                        max_layer = _layers - 1;
                } else {
                        max_layer = ma;