* Source/NSControl.m: Change encoding/decoding to protect

against differences in integer size.
This commit is contained in:
fredkiefer 2021-01-15 22:48:11 +01:00
parent 4dff9af8e6
commit e34e28e4c7
2 changed files with 8 additions and 2 deletions

View file

@ -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.

View file

@ -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];
}