mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 23:30:46 +00:00
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:
parent
38438cf711
commit
cf727674d1
1 changed files with 2 additions and 2 deletions
|
@ -376,7 +376,7 @@ static Class fontPanelClass = Nil;
|
||||||
- (NSFont*) convertFont: (NSFont*)fontObject
|
- (NSFont*) convertFont: (NSFont*)fontObject
|
||||||
{
|
{
|
||||||
NSFont *newFont = fontObject;
|
NSFont *newFont = fontObject;
|
||||||
unsigned int i;
|
int i;
|
||||||
float size;
|
float size;
|
||||||
float sizes[] = {4.0, 6.0, 8.0, 9.0, 10.0, 11.0, 12.0, 13.0,
|
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};
|
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
|
- (NSDictionary *) convertAttributes: (NSDictionary *)attributes
|
||||||
{
|
{
|
||||||
NSMutableDictionary *newAttributes;
|
NSMutableDictionary *newAttributes;
|
||||||
unsigned int i;
|
int i;
|
||||||
float size;
|
float size;
|
||||||
float sizes[] = {4.0, 6.0, 8.0, 9.0, 10.0, 11.0, 12.0, 13.0,
|
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};
|
14.0, 16.0, 18.0, 24.0, 36.0, 48.0, 64.0};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue