http://d.puremagic.com/issues/show_bug.cgi?id=2697
moritzwarn...@web.de changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |moritzwarn...@web.de ------- Comment #2 from moritzwarn...@web.de 2009-05-03 13:30 ------- I only see this error on windows, linux (x64) works for me. (dmd 1.043) This is the test case I have made after I ran into this problem: float getFloat() { return 11468.78f; } void main() { uint i = cast(uint) 11468.78f; assert(i == 11468); uint j = cast(uint) getFloat(); assert(j == 11468); //fails on windows: j is 0. } --