Correction for crash on 64bit platforms.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@21666 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2005-08-22 06:38:04 +00:00
parent a72a36790e
commit f12e95ec66
2 changed files with 10 additions and 2 deletions

View file

@ -181,7 +181,7 @@ NSInterfaceStyleForKey(NSString *key, NSResponder *responder)
NSUserDefaults *defs;
NSMapEnumerator enumerator;
NSString *key;
NSInterfaceStyle val;
void *val;
defs = [NSUserDefaults standardUserDefaults];
@ -215,7 +215,7 @@ NSInterfaceStyleForKey(NSString *key, NSResponder *responder)
}
}
if (newStyle != val)
if (newStyle != ((NSInterfaceStyle)val))
{
NSMapInsert(styleMap, (void*)key, (void*)newStyle);
}