]> git.saurik.com Git - wxWidgets.git/commitdiff
signed/unsigned warning fix
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 6 May 2006 15:26:41 +0000 (15:26 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 6 May 2006 15:26:41 +0000 (15:26 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39061 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/datavgen.cpp

index e84b872f4bfbbb1cfcf0001bff4dc400eb2eaf63..1c2b8a2e188af571f8854d000261a49b0592675e 100644 (file)
@@ -1142,7 +1142,7 @@ size_t wxDataViewMainWindow::GetLastVisibleRow()
     wxSize client_size = GetClientSize();
     m_owner->CalcUnscrolledPosition( client_size.x, client_size.y, &client_size.x, &client_size.y );
 
     wxSize client_size = GetClientSize();
     m_owner->CalcUnscrolledPosition( client_size.x, client_size.y, &client_size.x, &client_size.y );
 
-    return wxMin( GetRowCount()-1, (client_size.y/m_lineHeight)+1 );
+    return wxMin( GetRowCount()-1, ((unsigned)client_size.y/m_lineHeight)+1 );
 }
 
 size_t wxDataViewMainWindow::GetRowCount()
 }
 
 size_t wxDataViewMainWindow::GetRowCount()