I use open source to create my project. when I add an EGOTextView
to the project, it has semantic problems, for example:
Comparison of integers of different signs: 'int' and 'NSUInteger' (aka 'unsigned long') Comparison of integers of different signs: 'NSInteger' (aka 'long') and 'NSUInteger' (aka 'unsigned long')
For example, in the source code:
for (int i = 0; i < lines.count; i++)
I noticed that the project has an assembly configuration file, which includes:
// Make CG and NS geometry types be the same. Mostly doesn't matter on iPhone, but this also makes NSInteger types be defined based on 'long' consistently, which avoids conflicting warnings from clang + llvm 2.7 about printf format checking
OTHER_CFLAGS = $ (value) -DNS_BUILD_32_LIKE_64
According to the comments, I assume this is causing problems. However, I do not know the value for this setting OTHER_CFLAGS
. And I also donβt know how to fix it in order to avoid semantic problems.
Can anyone help me?
Thanks!
source share