Fix mismatched types (warnings).
authorDavid Robillard <d@drobilla.net>
Wed, 8 Oct 2008 03:16:57 +0000 (03:16 +0000)
committerDavid Robillard <d@drobilla.net>
Wed, 8 Oct 2008 03:16:57 +0000 (03:16 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@3884 d708f5d6-7413-0410-9779-e7cbd77b26cf

gtk2_ardour/port_matrix.cc

index 7486e5d2c5f1ab056a472f27a480941ea3681c8e..6ac770700212017ecc26ba4342310fad43de2901 100644 (file)
@@ -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";