Don't use wxString::ToLong() with short variable.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70564
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
bool wxNativeFontInfo::FromString(const wxString& s)
{
long l;
- short version;
+ unsigned long version;
wxStringTokenizer tokenizer(s, wxT(";"));
wxString token = tokenizer.GetNextToken();
- if ( !token.ToLong(&version) || version < 0 || version > 1 )
+ if ( !token.ToULong(&version) || version > 1 )
return false;
token = tokenizer.GetNextToken();