Skip to content

Commit

Permalink
Add a WINOBJC comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
ms-jihua committed Jul 20, 2016
1 parent c585e3a commit 6615cb7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Frameworks/CoreFoundation/Locale.subproj/CFNumberFormatter.c
Original file line number Diff line number Diff line change
Expand Up @@ -786,6 +786,10 @@ void CFNumberFormatterSetProperty(CFNumberFormatterRef formatter, CFStringRef ke
#if U_ICU_VERSION_MAJOR_NUM >= 55
__CFGenericValidateType(value, CFNumberGetTypeID());
CFNumberGetValue((CFNumberRef)value, kCFNumberSInt32Type, &n);

// WINOBJC: WinObjC seems to have stricter type-checking than the reference platform,
// so an explicit cast is required here
// __cficu_unum_setContext(formatter->_nf, n, &status);
__cficu_unum_setContext(formatter->_nf, (UDisplayContext)n, &status);
#endif
}
Expand Down

0 comments on commit 6615cb7

Please sign in to comment.