Core Plot 1.1: Compile error when compiling Core Plot Examples

cocoa-touch, core-plot, ios, objective-c

Solution

This issue (issue #501) has now been fixed by the Core Plot team:

Issue 501 fixed

Problem

When trying to compile the following CorePlot 1.1 examples in Xcode 4.6, I get an compiler error. - `DatePlot` - `CPTTestApp - iPad` Compiler error in `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); } ```

Original source