git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67208
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// 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];