Thread overview | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
November 22, 2014 [Issue 8929] long.min is a Voldemort literal | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=8929 deadalnix <deadalnix@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |deadalnix@gmail.com -- |
November 22, 2014 [Issue 8929] long.min is a Voldemort literal | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=8929 hsteoh@quickfur.ath.cx changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ketmar@ketmar.no-ip.org --- Comment #5 from hsteoh@quickfur.ath.cx --- *** Issue 13606 has been marked as a duplicate of this issue. *** -- |
December 17, 2014 [Issue 8929] long.min is a Voldemort literal | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=8929 hsteoh@quickfur.ath.cx changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |john.loughran.colvin@gmail. | |com --- Comment #6 from hsteoh@quickfur.ath.cx --- *** Issue 13842 has been marked as a duplicate of this issue. *** -- |
December 17, 2014 [Issue 8929] long.min is a Voldemort literal | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=8929 hsteoh@quickfur.ath.cx changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |hsteoh@quickfur.ath.cx -- |
June 09, 2015 [Issue 8929] long.min is a Voldemort literal | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=8929 Andrei Alexandrescu <andrei@erdani.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Version|D1 & D2 |D2 -- |
May 30, 2017 [Issue 8929] long.min is a Voldemort literal | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=8929 Zaydek <zaydek@icloud.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |zaydek@icloud.com --- Comment #7 from Zaydek <zaydek@icloud.com> --- I don't think this is a bug. I think it's operator precedence. long(-9223372036854775808UL) or long l = -9223372036854775808UL Just a little unintuitive is all. -- |
April 09, 2018 [Issue 8929] long.min is a Voldemort literal | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=8929 --- Comment #8 from Simen Kjaeraas <simen.kjaras@gmail.com> --- *** Issue 13762 has been marked as a duplicate of this issue. *** -- |
April 09, 2018 [Issue 8929] long.min is a Voldemort literal | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=8929 Mitu <the.mail.of.mi2@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |the.mail.of.mi2@gmail.com -- |
September 13, 2020 [Issue 8929] long.min is a Voldemort literal | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=8929 Mathias LANG <pro.mathias.lang@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |pro.mathias.lang@gmail.com Resolution|--- |WONTFIX --- Comment #9 from Mathias LANG <pro.mathias.lang@gmail.com> --- Nowadays, the `L` suffix is not required anymore, so the following compiles just fine: ``` static assert (long.min == -9223372036854775808); ``` I was about to say that we should fix this for C compatibility, but C has the same issue, as Daniel pointed out: ``` int main () { long long a = -9223372036854775808LL; return 0; } ``` ``` foo.c:3:20: warning: integer literal is too large to be represented in a signed integer type, interpreting as unsigned [-Wimplicitly-unsigned-literal] long long a = -9223372036854775808LL; ^ 1 warning generated. ``` This sounds like a good entry for a FAQ. Closing as WONTFIX. -- |
Copyright © 1999-2021 by the D Language Foundation