MGR: fix a compiler warning (size_t is unsigned)

svn path=/trunk/boinc/; revision=15077
This commit is contained in:
Charlie Fenton 2008-04-22 08:38:20 +00:00
parent 4c5a3e2475
commit a3547a091e
1 changed files with 1 additions and 1 deletions

View File

@ -1190,7 +1190,7 @@ void CAdvancedFrame::OnSelectComputer(wxCommandEvent& WXUNUSED(event)) {
wxString sHost = dlg.m_ComputerNameCtrl->GetValue(); wxString sHost = dlg.m_ComputerNameCtrl->GetValue();
long lPort = GUI_RPC_PORT; long lPort = GUI_RPC_PORT;
int iPos = sHost.find(_(":")); int iPos = sHost.find(_(":"));
if (iPos != -1) { if (iPos != wxNOT_FOUND) {
wxString sPort = sHost.substr((size_t)iPos + 1); wxString sPort = sHost.substr((size_t)iPos + 1);
if (!sPort.ToLong(&lPort)) lPort = GUI_RPC_PORT; if (!sPort.ToLong(&lPort)) lPort = GUI_RPC_PORT;
sHost.erase((size_t)iPos); sHost.erase((size_t)iPos);