From cf727674d13476d0aaa7a115132d48867492f989 Mon Sep 17 00:00:00 2001 From: David Chisnall Date: Thu, 24 Feb 2011 13:18:43 +0000 Subject: [PATCH] Change unsigned int -> int, so that loops terminate with termination condition, rather than SegV git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32347 72102866-910b-0410-8b05-ffd578937521 --- Source/NSFontManager.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/NSFontManager.m b/Source/NSFontManager.m index 75154d19b..c7d700fcd 100644 --- a/Source/NSFontManager.m +++ b/Source/NSFontManager.m @@ -376,7 +376,7 @@ static Class fontPanelClass = Nil; - (NSFont*) convertFont: (NSFont*)fontObject { NSFont *newFont = fontObject; - unsigned int i; + int i; float size; float sizes[] = {4.0, 6.0, 8.0, 9.0, 10.0, 11.0, 12.0, 13.0, 14.0, 16.0, 18.0, 24.0, 36.0, 48.0, 64.0}; @@ -1083,7 +1083,7 @@ static Class fontPanelClass = Nil; - (NSDictionary *) convertAttributes: (NSDictionary *)attributes { NSMutableDictionary *newAttributes; - unsigned int i; + int i; float size; float sizes[] = {4.0, 6.0, 8.0, 9.0, 10.0, 11.0, 12.0, 13.0, 14.0, 16.0, 18.0, 24.0, 36.0, 48.0, 64.0};