fix data type conversion related compiler warnings

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36899 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Stephan Witt 2010-12-16 07:58:38 +00:00
parent 77960da09b
commit e7da6a6bc9

View File

@ -115,7 +115,7 @@ SpellCheckResult AppleSpeller_check(AppleSpeller speller, const char * word, con
result = SPELL_CHECK_LEARNED; result = SPELL_CHECK_LEARNED;
} }
} else { } else {
int capacity = [speller->misspelled count] + 1; NSUInteger capacity = [speller->misspelled count] + 1;
NSMutableArray * misspelled = [NSMutableArray arrayWithCapacity:capacity]; NSMutableArray * misspelled = [NSMutableArray arrayWithCapacity:capacity];
[misspelled addObjectsFromArray:speller->misspelled]; [misspelled addObjectsFromArray:speller->misspelled];
[misspelled addObject:[NSValue valueWithRange:match]]; [misspelled addObject:[NSValue valueWithRange:match]];
@ -233,7 +233,7 @@ int AppleSpeller_numMisspelledWords(AppleSpeller speller)
void AppleSpeller_misspelledWord(AppleSpeller speller, int index, int * start, int * length) void AppleSpeller_misspelledWord(AppleSpeller speller, int index, int * start, int * length)
{ {
NSRange range = [[speller->misspelled objectAtIndex:index] rangeValue]; NSRange range = [[speller->misspelled objectAtIndex:(NSUInteger)index] rangeValue];
*start = range.location; *start = range.location;
*length = range.length; *length = range.length;
} }