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

Compiler asserts unreachable when '%' is used with comptime float and an int #776

Closed
tgschultz opened this Issue Feb 15, 2018 · 0 comments

Comments

Projects
None yet
2 participants
@tgschultz
Contributor

tgschultz commented Feb 15, 2018

const warn = @import("std").debug.warn;

test "comptime float % int" {
    comptime var p: f32 = 1;
    warn("{}\n", p%2);
}

@andrewrk andrewrk added the bug label Feb 15, 2018

@andrewrk andrewrk added this to the 0.2.0 milestone Feb 15, 2018

@andrewrk andrewrk closed this in 1c1c069 Feb 15, 2018

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