[Issue 24787] Error signed integer overflow

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Oct 1 12:15:34 UTC 2024


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

Dennis <dkorpel at live.nl> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dkorpel at live.nl
           Hardware|x86_64                      |All
                 OS|Linux                       |All

--- Comment #1 from Dennis <dkorpel at live.nl> ---
That expression gets parsed as -(9223372036854775808L), and 9223372036854775808
does not fit in a long, but you require it to be a long with the L suffix. You
can remove the L suffix, or replace it with UL, and then the program works.

Since this is filed as an enhancement request, what part of this behavior do
you want to see changed exactly?

--


More information about the Digitalmars-d-bugs mailing list