Re: NSControls failing to set status/label on BigEndian/64bit

Fred Kiefer <[email protected]>
Newsgroups gmane.comp.lib.gnustep.devel
Message-ID <[email protected]>

> Am 06.01.2021 um 17:20 schrieb Wolfgang Lux <[email protected]>:
> 
> 
> 
>> Am 06.01.2021 um 17:15 schrieb Wolfgang Lux <[email protected]>:
>> 
>> 
>> 
>>> Am 06.01.2021 um 15:41 schrieb Fred Kiefer <[email protected]>:
>>> 
>>> 
>>> The next step would be to compare these values with the ones you get on amd64. But before that, could you please run the base tests on ppc64? Maybe you get already a failing test there and this would just explain the behaviour. We always should start looking for an issue from ground up. If base is already broken there is no use in trying to pin it down in gui.
>> 
>> I don’t think you need any further testing. The _highlightsByMask member is declared as NSInteger in NSButtonCell.h (which means 64 bits on x86-64 and ppc64) but unarchived as unsigned int in NSButtonCell.m (which means 32 bits) and big endian architectures as less forgiving on such mismatches.
>> 
>> The same applies to (at least) _showAltState mask.
> 
> And encodeWithCoder: seems to get this wrong for both members, too.

Thank you Wolfgang,

I will try to correct the code there.

Cheers,
Fred
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.