diff --git a/ChangeLog b/ChangeLog index 6158a21ef..6a5e6ff45 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2005-08-22 14:36 Gregory John Casamento + + * 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 * configure.ac: Check for v19 of portaudio. diff --git a/Source/NSInterfaceStyle.m b/Source/NSInterfaceStyle.m index fb4a5ca34..8d711afcb 100644 --- a/Source/NSInterfaceStyle.m +++ b/Source/NSInterfaceStyle.m @@ -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); }