On Tue, Mar 16, 2021 at 05:52:58AM -0400, Michael Grant via isync-devel wrote:
I realize they are uchar which means 8 bits and maybe this works fine in gcc,

in fact, it works with any compiler by necessity, as the assignment to char variables MUST truncate the result.

the masking in line 12 is necessary, because there is no assignment. https://stackoverflow.com/questions/46073295/implicit-type-promotion-rules explains the deeper problem.


_______________________________________________
isync-devel mailing list
isync-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/isync-devel

Reply via email to