Fix warning about %lu being used with an int in 32 bit wxOSX build.

NSUInteger is unsigned long in 64 bit builds, but unsigned int in 32 bits, so
case it to long explicitly to avoid warnings about using it with %lu format
specifier.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@76286 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2014-04-05 10:44:51 +00:00
parent 337afc2471
commit eed86ca61a

View File

@ -179,7 +179,8 @@ inline wxDataViewItem wxDataViewItemFromMaybeNilItem(id item)
// not just some arbitrary object, so we serialize the pointer into the // not just some arbitrary object, so we serialize the pointer into the
// string. Notice the use of NSInteger which is big enough to store a // string. Notice the use of NSInteger which is big enough to store a
// pointer in both 32 and 64 bit builds. // pointer in both 32 and 64 bit builds.
return [NSString stringWithFormat:@"%lu", reinterpret_cast<NSUInteger>(column)]; return [NSString stringWithFormat:@"%lu",
(unsigned long)reinterpret_cast<NSUInteger>(column)];
} }
-(id) initWithColumnPointer:(const wxDataViewColumn*)column -(id) initWithColumnPointer:(const wxDataViewColumn*)column