[Issue 8929] long.min is a Voldemort literal

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Nov 2 03:18:57 PDT 2012


http://d.puremagic.com/issues/show_bug.cgi?id=8929


Don <clugdbug at yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|long.min is a Voldermort    |long.min is a Voldemort
                   |literal                     |literal


--- Comment #2 from Don <clugdbug at yahoo.com.au> 2012-11-02 03:17:37 PDT ---
(In reply to comment #1)
> (In reply to comment #0)
> > It cannot be named.

> My *guess* is interprets the decimal number into a long, and afterwards, the
> sign is applied. This chokes in this particular case, because the valid range
> for longs is [-2^^63, 2^^63-1], so the interpreted number overflows before the
> compiler has a chance to apply the sign:

Yes, of course that's what's happening. It is a number you cannot write as a
literal, you can only use a euphemism like "long.min" or "-2L^^63".

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list