[Issue 17417] Deprecate signed integer promotions in bitwise operations

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Tue May 23 08:36:18 PDT 2017


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

--- Comment #4 from anonymous4 <dfj1esp02 at sneakemail.com> ---
I think it's usually used with int, in which case there will be no promotion.
Another thing I can think of is cast(ubyte)(short>>8) which would be a bit more
difficult to check that sign extension doesn't affect the result if we would
want to allow it.

--


More information about the Digitalmars-d-bugs mailing list