New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fmt throws index out of bounds, or segfault, in non-debug modes on some float values #928

tgschultz opened this Issue Apr 17, 2018 · 1 comment


None yet
2 participants

tgschultz commented Apr 17, 2018

pub fn main() void
    var t = @bitCast(f64, u64(4565947189410398208));
    warn("{}\n", t);
index out of bounds
Segmentation fault

Windows has the same issue. I would have thought it'd have to do with FloatMode, but neither setting changed the behavior.


This comment has been minimized.


andrewrk commented Apr 17, 2018

@andrewrk andrewrk added this to the 0.3.0 milestone Apr 23, 2018

@andrewrk andrewrk added the bug label Apr 23, 2018

tiehuis added a commit that referenced this issue Apr 23, 2018

Fix release float printing errors
Fixes #564.
Fixes #669.
Fixes #928.

@andrewrk andrewrk closed this in e5175d4 Apr 29, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment