[swift-corelibs-dev] Query on mapping kCFNumberCharType to kCFNumberSInt8Type
anthony.parker at apple.com
Thu Oct 27 11:10:27 CDT 2016
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.
> On Oct 27, 2016, at 3:26 AM, Gayathri Bhaskaran via swift-corelibs-dev <swift-corelibs-dev at swift.org> wrote:
> 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.
> Gayathri Bhaskaran
> swift-corelibs-dev mailing list
> swift-corelibs-dev at swift.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the swift-corelibs-dev