From a3547a091e5db4559ee2bba685f6d814206a2772 Mon Sep 17 00:00:00 2001 From: Charlie Fenton Date: Tue, 22 Apr 2008 08:38:20 +0000 Subject: [PATCH] MGR: fix a compiler warning (size_t is unsigned) svn path=/trunk/boinc/; revision=15077 --- clientgui/AdvancedFrame.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clientgui/AdvancedFrame.cpp b/clientgui/AdvancedFrame.cpp index 4207ab3f8a..1a886f7d36 100644 --- a/clientgui/AdvancedFrame.cpp +++ b/clientgui/AdvancedFrame.cpp @@ -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);