尝试在 Xcode 4.6 中编译以下 CorePlot 1.1 示例时,出现编译器错误。
DatePlot
CPTTestApp - iPad
编译器错误CPTUtilities.m
:Operand of ? changes signedness: 'int' to 'NSUInteger' (aka 'unsigned int')
NSRange CPTExpandedRange(NSRange range, NSInteger expandBy)
{
NSUInteger loc = MAX(0, (NSInteger)range.location - expandBy);
NSUInteger lowerExpsion = range.location - loc; // Here is the error
NSUInteger length = (NSUInteger)( (NSInteger)(range.length + lowerExpansion) + expandBy);
return NSMakeRange(loc, length);
}