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 01:06 schrieb Riccardo Mottola <[email protected]>:
> 
> On 2021-01-05 08:07:59 +0000 Fred Kiefer <[email protected]> wrote:
> 
>>> line 1094, after the mask is calculated, do you expect it to be always 0, both for on and off state? It is always 0 for me.
>> As you can see a few lines above the value of mask depends on _cell.is_highlighted and _cell.state. You should output these two values as well. Next it could be either _highlightsByMask or _showAltStateMask. Sou you need to check these values as well. If they are zero you should go back to the decoding method and see wether these values get decoded correctly. The best way to check is to do the same on a 32 bit or 64 little endian system and compare the results. Form files should decode the same for both systems.
> 
> It looks totally different, this is what I see on amd64:
> 2021-01-05 23:15:22.654 Ink[2501:123181007659016] is highlghted 0 - state 0 - altStateMask 0 - highlightByMask 6
> 2021-01-05 23:15:22.683 Ink[2501:123181007659016] is highlghted 0 - state 0 - altStateMask 0 - highlightByMask 6
> 2021-01-05 23:15:22.746 Ink[2501:123181007659016] is highlghted 0 - state 0 - altStateMask 0 - highlightByMask 6
> 2021-01-05 23:15:31.179 Ink[2501:123181007659016] is highlghted 0 - state 0 - altStateMask 0 - highlightByMask 6
> 2021-01-05 23:15:31.180 Ink[2501:123181007659016] is highlghted 0 - state 0 - altStateMask 0 - highlightByMask 6
> 2021-01-05 23:15:31.181 Ink[2501:123181007659016] is highlghted 0 - state 0 - altStateMask 0 - highlightByMask 6
> 2021-01-05 23:15:31.182 Ink[2501:123181007659016] is highlghted 0 - state 0 - altStateMask 0 - highlightByMask 6
> 2021-01-05 23:15:31.182 Ink[2501:123181007659016] is highlghted 0 - state 0 - altStateMask 0 - highlightByMask 6
> 2021-01-05 23:15:31.187 Ink[2501:123181007659016] is highlghted 0 - state 1 - altStateMask 1 - highlightByMask 1
> 2021-01-05 23:15:31.191 Ink[2501:123181007659016] is highlghted 0 - state 1 - altStateMask 0 - highlightByMask 1
> 2021-01-05 23:15:31.195 Ink[2501:123181007659016] is highlghted 0 - state 1 - altStateMask 1 - highlightByMask 1
> 
> This on PPC64
> 2021-01-06 00:12:47.720 Ink[48256:48256] is highlghted 0 - state 0 - altStateMask 0 - highlightByMask 0
> 2021-01-06 00:12:47.722 Ink[48256:48256] is highlghted 0 - state 0 - altStateMask 0 - highlightByMask 0
> 2021-01-06 00:12:47.724 Ink[48256:48256] is highlghted 0 - state 0 - altStateMask 0 - highlightByMask 0
> 2021-01-06 00:12:47.727 Ink[48256:48256] is highlghted 0 - state 0 - altStateMask 0 - highlightByMask 0
> 2021-01-06 00:12:47.729 Ink[48256:48256] is highlghted 0 - state 0 - altStateMask 0 - highlightByMask 0
> 2021-01-06 00:12:47.792 Ink[48256:48256] is highlghted 0 - state 0 - altStateMask 1 - highlightByMask 0
> 2021-01-06 00:12:47.862 Ink[48256:48256] is highlghted 0 - state 0 - altStateMask 0 - highlightByMask 0
> 2021-01-06 00:12:47.866 Ink[48256:48256] is highlghted 0 - state 0 - altStateMask 1 - highlightByMask 0
> 
> 
> we see indeed state is always zero and the highlightByMask too....  Where is it decoded?

You should concentrate on the _highlightByMask which gets decoded in line 1905 (_showAltStateMask is handled just below).
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.