[swift-corelibs-dev] Query on mapping kCFNumberCharType to kCFNumberSInt8Type

Tony Parker anthony.parker at apple.com
Thu Oct 27 11:10:27 CDT 2016


Hi Gayathri,

The first entry in that table is the “canonical fixed width type”. We want char to be 8 bits, so we use the SInt8 there. If you look at the places where we use the canonical type it expects it to be one of a more limited set of values.

- Tony

> On Oct 27, 2016, at 3:26 AM, Gayathri Bhaskaran via swift-corelibs-dev <swift-corelibs-dev at swift.org> wrote:
> 
> Hello
> 
> As per https://github.com/apple/swift-corelibs-foundation/blob/master/CoreFoundation/NumberDate.subproj/CFNumber.c#L432 <https://github.com/apple/swift-corelibs-foundation/blob/master/CoreFoundation/NumberDate.subproj/CFNumber.c#L432>
> 
> It is observed that kCFNumberCharType is mapped to kCFNumberSInt8Type. Is there any reason why kCFNumberCharType is mapped to kCFNumberSInt8Type ?
> 
> Does it make sense to map kCFNumberCharType to kCFNumberCharType itself ? Any inputs on this is appreciated. 
> 
> 
> Regards
> Gayathri Bhaskaran
> 
> 
> _______________________________________________
> swift-corelibs-dev mailing list
> swift-corelibs-dev at swift.org
> https://lists.swift.org/mailman/listinfo/swift-corelibs-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-corelibs-dev/attachments/20161027/c3a3254e/attachment.html>


More information about the swift-corelibs-dev mailing list