mirror of https://github.com/BOINC/boinc.git
MGR: fix a compiler warning (size_t is unsigned)
svn path=/trunk/boinc/; revision=15077
This commit is contained in:
parent
4c5a3e2475
commit
a3547a091e
|
@ -1190,7 +1190,7 @@ void CAdvancedFrame::OnSelectComputer(wxCommandEvent& WXUNUSED(event)) {
|
|||
wxString sHost = dlg.m_ComputerNameCtrl->GetValue();
|
||||
long lPort = GUI_RPC_PORT;
|
||||
int iPos = sHost.find(_(":"));
|
||||
if (iPos != -1) {
|
||||
if (iPos != wxNOT_FOUND) {
|
||||
wxString sPort = sHost.substr((size_t)iPos + 1);
|
||||
if (!sPort.ToLong(&lPort)) lPort = GUI_RPC_PORT;
|
||||
sHost.erase((size_t)iPos);
|
||||
|
|
Loading…
Reference in New Issue