From 077c263a4cb7476c97b7600838fdec17ae6cec4b Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 10 Feb 2012 23:34:45 +0000 Subject: [PATCH] Fix compilation ofr ports without native font info, such as wxDFB. 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 --- src/common/fontcmn.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/fontcmn.cpp b/src/common/fontcmn.cpp index fed694a96d..52936bfbe1 100644 --- a/src/common/fontcmn.cpp +++ b/src/common/fontcmn.cpp @@ -603,12 +603,12 @@ void wxNativeFontInfo::SetFaceName(const wxArrayString& facenames) 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(); -- 2.45.2