]> git.lyx.org Git - features.git/commitdiff
fix data type conversion related compiler warnings
authorStephan Witt <switt@lyx.org>
Thu, 16 Dec 2010 07:58:38 +0000 (07:58 +0000)
committerStephan Witt <switt@lyx.org>
Thu, 16 Dec 2010 07:58:38 +0000 (07:58 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36899 a592a061-630c-0410-9148-cb99ea01b6c8

src/support/AppleSpeller.m

index aecb787551aa6440276e8c2703359fdb1932b823..86384cc885c09807f3f1d15eaaf3e74ee7d77b87 100644 (file)
@@ -115,7 +115,7 @@ SpellCheckResult AppleSpeller_check(AppleSpeller speller, const char * word, con
                                        result = SPELL_CHECK_LEARNED;
                        }
                } else {
-                       int capacity = [speller->misspelled count] + 1;
+                       NSUInteger capacity = [speller->misspelled count] + 1;
                        NSMutableArray * misspelled = [NSMutableArray arrayWithCapacity:capacity];
                        [misspelled addObjectsFromArray:speller->misspelled];
                        [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)
 {
-       NSRange range = [[speller->misspelled objectAtIndex:index] rangeValue];
+       NSRange range = [[speller->misspelled objectAtIndex:(NSUInteger)index] rangeValue];
        *start = range.location;
        *length = range.length;
 }