From: Václav Slavík Date: Sat, 8 May 2010 15:31:07 +0000 (+0000) Subject: Fixed a test in wxTranslations::GetString() to use UINT_MAX instead of -1. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/35a4807534d3b8eb34ad1659d981849e60749578 Fixed a test in wxTranslations::GetString() to use UINT_MAX instead of -1. See #12031. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64247 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/translation.cpp b/src/common/translation.cpp index 3aa38fc675..1e89106f9a 100644 --- a/src/common/translation.cpp +++ b/src/common/translation.cpp @@ -1485,7 +1485,7 @@ const wxString& wxTranslations::GetString(const wxString& origString, TRACE_I18N, "string \"%s\"%s not found in %slocale '%s'.", origString, - ((long)n) != -1 ? wxString::Format("[%ld]", (long)n) : wxString(), + n != UINT_MAX ? wxString::Format("[%ld]", (long)n) : wxString(), !domain.empty() ? wxString::Format("domain '%s' ", domain) : wxString(), m_lang );