Fix warning.

git-svn-id: svn://localhost/ardour2/branches/3.0@10295 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Carl Hetherington 2011-10-23 21:31:21 +00:00
parent 3f2926794d
commit ae2bbd98a5

View 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;