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
This commit is contained in:
David Chisnall 2011-02-24 13:18:43 +00:00
parent 38438cf711
commit cf727674d1

View file

@ -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};