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
fn valGetMax(comptime T: type) usize {
var t = @typeId(T);
var s = switch(t) {
builtin.TypeId.Float => 32,
else => @maxValue(T),
};
return s;
}
test "type" {
var x = valGetMax(i32);
x = valGetMax(f64);
}
TODO analyze_min_max_value float
I imagine other builtins will have the same problem.