Fix for bug #24785.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27195 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2008-12-03 00:48:42 +00:00
parent a06a8ceb9e
commit 03d2fc6b14
2 changed files with 12 additions and 2 deletions

View file

@ -1,3 +1,7 @@
2008-12-02 19:45-EST Gregory John Casamento <greg_casamento@yahoo.com>
* Source/NSApplication.m: Fix for bug #24785.
2008-12-02 Richard Frith-Macdonald <rfm@gnu.org>
* Source/NSBrowser.m: fix uninitialised variable.

View file

@ -3230,8 +3230,14 @@ struct _DelegateWrapper
* and BOOL are integers, and NSTerminateNow is defined as YES
* and NSTerminateCancel as NO.
*/
termination = (NSApplicationTerminateReply)
[_delegate applicationShouldTerminate: self];
/* We need to do double coercion here since some version of the
* compiler will get confused due to the differences in how
* enum is implemented on various platforms. This ensures
* that the return type is handled properly in all cases.
*/
termination = (NSApplicationTerminateReply)(BOOL)
[_delegate applicationShouldTerminate: self];
}
else
{