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@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@swift.org > https://lists.swift.org/mailman/listinfo/swift-corelibs-dev
_______________________________________________ swift-corelibs-dev mailing list swift-corelibs-dev@swift.org https://lists.swift.org/mailman/listinfo/swift-corelibs-dev