【发布时间】:2013-01-25 13:06:27
【问题描述】:
尝试在 Xcode 4.6 中编译以下 CorePlot 1.1 示例时,出现编译器错误。
DatePlotCPTTestApp - 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);
}
【问题讨论】:
-
显示如何调用 CPTExpandedRange 函数。
-
我只是打开示例文件并编译它(对于 Mac OSX 64 位)。可以编译Core Plot 1.1的示例文件吗?
-
这听起来像 Xcode 4.6 beta 中的新 LLVM 版本可能会在这里提出更严格的警告。要么退回到当前稳定的 Xcode 4.5 版本,要么在 Core Plot 邮件列表中将其报告为错误:groups.google.com/group/coreplot-discuss
-
我尝试在您的 Google 网上论坛网站上提交错误报告,但收到来自 Google 网上论坛的错误:
There was an error posting the message to the group. Please try again later。 Google Groups 似乎也有一些错误... :-) 请您将其报告为 Core Plot 错误? -
实际问题跟踪器在这里:code.google.com/p/core-plot/issues/list,但 Google 网上论坛邮件列表就是这样,一个邮件列表。您可以简单地向它发送电子邮件。我已经一年多没有参与这个项目了。
标签: ios objective-c cocoa-touch core-plot