[Issue 13606] erroneous overflow error in negative long literal

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sun Oct 12 06:45:17 PDT 2014


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

bearophile_hugs at eml.cc changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bearophile_hugs at eml.cc

--- Comment #2 from bearophile_hugs at eml.cc ---
(In reply to Ketmar Dark from comment #1)
> p.s. i know about workaround with "-9223372036854775808uL", yet i'm sure
> that compiler should not reject this value with just "L".

-9223372036854775808L is a valid long value literal, so the compiler must
accept it.

--


More information about the Digitalmars-d-bugs mailing list