diff --git a/ChangeLog b/ChangeLog index acce40c18..0ee8c1d1f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2013-02-18 Fred Kiefer + + * Source/GSDragView.m + * Source/NSTextView.m + Fix compiler warnings reported by + Sebastian Reitenbach + 2013-02-17 German A. Arias * Resources/Spanish.lproj/Localizable.strings: Translations. diff --git a/Source/GSDragView.m b/Source/GSDragView.m index 0b2c24713..a26d742c9 100644 --- a/Source/GSDragView.m +++ b/Source/GSDragView.m @@ -497,7 +497,7 @@ static GSDragView *sharedDragView = nil; NSDebugLLog (@"NSDragging", @"drag, operation, target mask = (%x, %x, %x), dnd aware = %d\n", - dragMask, operationMask, targetMask, + (unsigned int)dragMask, (unsigned int)operationMask, (unsigned int)targetMask, (targetWindowRef != 0)); if (cursors == nil) diff --git a/Source/NSTextView.m b/Source/NSTextView.m index 3cafdbe44..c870eef9e 100644 --- a/Source/NSTextView.m +++ b/Source/NSTextView.m @@ -5780,7 +5780,7 @@ static const NSInteger GSSpellingSuggestionMenuItemTag = 1; - (void) rightMouseDown: (NSEvent *)theEvent { - NSUInteger i; + NSInteger i; NSMenu *menu = [[self class] defaultMenu]; NSPoint point = [self convertPoint: [theEvent locationInWindow] fromView: nil]; NSUInteger index = [self _characterIndexForPoint: point @@ -5792,7 +5792,7 @@ static const NSInteger GSSpellingSuggestionMenuItemTag = 1; if (!_layoutManager) return; - for (i=[[menu itemArray] count]-1; i>=0; --i) + for (i = [[menu itemArray] count] - 1; i >= 0; --i) { NSMenuItem *item = [menu itemAtIndex: i]; if ([item tag] == GSSpellingSuggestionMenuItemTag)