mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-22 13:10:59 +00:00
* Source/NSControl.m: Change encoding/decoding to protect
against differences in integer size.
This commit is contained in:
parent
4dff9af8e6
commit
e34e28e4c7
2 changed files with 8 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
2021-01-15 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
* Source/NSControl.m: Change encoding/decoding to protect
|
||||
against differences in integer size.
|
||||
|
||||
2021-01-08 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
* Headers/AppKit/NSComboBoxCell.h: Correct type of instance variables.
|
||||
|
|
|
@ -50,6 +50,7 @@
|
|||
#import "AppKit/NSWindow.h"
|
||||
#import "GSBindingHelpers.h"
|
||||
#import "NSViewPrivate.h"
|
||||
#import "GSGuiPrivate.h"
|
||||
|
||||
/*
|
||||
* Class variables
|
||||
|
@ -993,7 +994,7 @@ static NSNotificationCenter *nc;
|
|||
}
|
||||
else
|
||||
{
|
||||
[aCoder encodeValueOfObjCType: @encode(int) at: &_tag];
|
||||
encode_NSInteger(aCoder, &_tag);
|
||||
[aCoder encodeObject: _cell];
|
||||
[aCoder encodeValueOfObjCType: @encode(BOOL) at: &_ignoresMultiClick];
|
||||
}
|
||||
|
@ -1038,7 +1039,7 @@ static NSNotificationCenter *nc;
|
|||
}
|
||||
else
|
||||
{
|
||||
[aDecoder decodeValueOfObjCType: @encode(int) at: &_tag];
|
||||
decode_NSInteger(aDecoder, &_tag);
|
||||
[aDecoder decodeValueOfObjCType: @encode(id) at: &_cell];
|
||||
[aDecoder decodeValueOfObjCType: @encode(BOOL) at: &_ignoresMultiClick];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue