mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-29 19:37:38 +00:00
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:
parent
a72a36790e
commit
f12e95ec66
2 changed files with 10 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue