diff options
author | David Robillard <d@drobilla.net> | 2008-10-08 03:16:57 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2008-10-08 03:16:57 +0000 |
commit | e394f6ab175204e5fea76bc342989f004d459226 (patch) | |
tree | 4eec9d041fedb22dbdaea1cd5d129b78c49d3e99 /gtk2_ardour | |
parent | 93c2af8c9e3b660731e0b73a23a827aadb75c5fd (diff) |
Fix mismatched types (warnings).
git-svn-id: svn://localhost/ardour2/branches/3.0@3884 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour')
-rw-r--r-- | gtk2_ardour/port_matrix.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gtk2_ardour/port_matrix.cc b/gtk2_ardour/port_matrix.cc index 7486e5d2c5..6ac7707002 100644 --- a/gtk2_ardour/port_matrix.cc +++ b/gtk2_ardour/port_matrix.cc @@ -190,8 +190,8 @@ PortGroupUI::port_checkbutton_release (GdkEventButton* ev, CheckButton* b, int r /* The fun starts here */ - int const ports = _port_group.ports.size(); - int const rows = _port_matrix.n_rows (); + const size_t ports = _port_group.ports.size(); + const size_t rows = _port_matrix.n_rows (); if (rows == 0 || ports == 0) { return true; @@ -201,7 +201,7 @@ PortGroupUI::port_checkbutton_release (GdkEventButton* ev, CheckButton* b, int r the connection for the corresponding "connector" port. */ - for (uint32_t j = c; j < ports; ++j) { + for (size_t j = c; j < ports; ++j) { /* we've got a port to connect, now lets find the thing to connect it too ... (search "down" the rows) @@ -209,7 +209,7 @@ PortGroupUI::port_checkbutton_release (GdkEventButton* ev, CheckButton* b, int r cerr << "we're going to connect port " << j << " of " << ports << endl; - for (int i = r; i < rows; ++i) { + for (size_t i = r; i < rows; ++i) { cerr << this << " going to connect to row " << i << " of " << rows << endl; cerr << "access [" << i << "][" << j << "]\n"; |