]> git.saurik.com Git - wxWidgets.git/commitdiff
signed/unsigned warning fix
authorStefan Csomor <csomor@advancedconcepts.ch>
Wed, 16 Mar 2011 06:49:51 +0000 (06:49 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Wed, 16 Mar 2011 06:49:51 +0000 (06:49 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67208 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/osx/cocoa/textctrl.mm

index 7aa04cf34f564ec7b37789fa72397d0ce57a1c31..8ae0ed764c8f8c34248d190a6ef16438416ea541 100644 (file)
@@ -487,7 +487,7 @@ bool wxNSTextViewControl::GetStyle(long position, wxTextAttr& style)
         // NOTE: It appears that other platforms accept GetStyle with the position == length
         // but that NSTextStorage does not accept length as a valid position.
         // Therefore we return the default control style in that case.
-        if (position < [[m_textView string] length]) 
+        if (position < (long) [[m_textView string] length]) 
         {
             NSTextStorage* storage = [m_textView textStorage];
             font = [[storage attribute:NSFontAttributeName atIndex:position effectiveRange:NULL] autorelease];