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

Walter Bright <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |[email protected]
         Resolution|---                         |INVALID

--- Comment #8 from Walter Bright <[email protected]> ---
Since operands always undergo integral promotions, this behavior is expected
and correct. The idea is that the expressions will compute the same value as
the equivalent C expression in order to enable simple conversion of C code to D
code.

See:

https://dlang.org/spec/type.html#integer-promotions
https://dlang.org/spec/type.html#usual-arithmetic-conversions

--

Reply via email to