You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
long a = 0;
long b = 9223372036854775807;
a = cast(double) b;
writeln(b);
writeln(a);
The results are:
b = 9223372036854775807
a = -9223372036854775808
This should not be possible.
The text was updated successfully, but these errors were encountered:
gordon.freeman.sullied commented on 2014-10-18T17:52:14Z
In the case of a large negative or positive value stored in a long, an intermediate double will not fully store it, therefore this should not be possible without more explicit means.
gordon.freeman.sullied reported this on 2014-10-18T17:49:00Z
Transferred from https://issues.dlang.org/show_bug.cgi?id=13634
Description
The text was updated successfully, but these errors were encountered: