https://issues.dlang.org/show_bug.cgi?id=24879

Dennis <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]
            Summary|Weird bug...                |Unexpected sign extension
                   |                            |after shifting a ubyte and
                   |                            |promoting to ulong
           Severity|normal                      |enhancement

--- Comment #2 from Dennis <[email protected]> ---
`bytes[4] << 24` gets promoted to int, and sign extended when or'd with a
ulong. The same happens in C, and D committed to having the same integer
promotion rules as C, so I don't see much that can be done here. Do you have a
suggestion?

--

Reply via email to