[Issue 16997] Real-life evidence for integer promotion of unary minus creating bugs when porting C code
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Tue Dec 20 20:58:18 PST 2016
https://issues.dlang.org/show_bug.cgi?id=16997
Ketmar Dark <ketmar at ketmar.no-ip.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #1626|0 |1
is obsolete| |
--- Comment #2 from Ketmar Dark <ketmar at ketmar.no-ip.org> ---
Created attachment 1627
--> https://issues.dlang.org/attachment.cgi?id=1627&action=edit
warning on unary minus/plus
fixed patch, made against vanilla. it will show warning for unary -/+ for
(u)byte and (u)short, but one can silence that with `-(expr)`. it prolly needs
better message with explanation of what it is, and what to do, and why -- but i
leave that for that one who will make a PR out of the patch.
--
More information about the Digitalmars-d-bugs
mailing list