www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 13785] New: Integer literals are not getting widened

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

          Issue ID: 13785
           Summary: Integer literals are not getting widened
           Product: D
           Version: D1 & D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P1
         Component: DMD
          Assignee: nobody puremagic.com
          Reporter: public dicebot.lv

```
const long A = 24L*60*60*1000*1000*10L;
const long B = 24*60*60*1000*1000*10L;
static assert(A == B);
```

applicable to both D1 and D2

--
Nov 27 2014