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:
gcasa 2005-08-22 06:38:04 +00:00
parent f4a9362dd9
commit dd5e56cd81
2 changed files with 10 additions and 2 deletions

View file

@ -1,3 +1,11 @@
2005-08-22 14:36 Gregory John Casamento <greg_casamento@yahoo.com>
* Source/NSInterfaceStyle.m: -[GSInterfaceStyle
defaultsDidChange:] correction for val variable. Previously
this was the enumerated type NSInterfaceStyle. This caused
some alighnment issues on 64bit platforms. I have also tested
this change on i386/Linux.
2005-08-17 Adam Fedor <fedor@gnu.org> 2005-08-17 Adam Fedor <fedor@gnu.org>
* configure.ac: Check for v19 of portaudio. * configure.ac: Check for v19 of portaudio.

View file

@ -181,7 +181,7 @@ NSInterfaceStyleForKey(NSString *key, NSResponder *responder)
NSUserDefaults *defs; NSUserDefaults *defs;
NSMapEnumerator enumerator; NSMapEnumerator enumerator;
NSString *key; NSString *key;
NSInterfaceStyle val; void *val;
defs = [NSUserDefaults standardUserDefaults]; 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); NSMapInsert(styleMap, (void*)key, (void*)newStyle);
} }