mirror of
https://github.com/Ed94/Odin.git
synced 2026-07-30 11:20:08 +00:00
Fix Internal Compiler Error: Type_Info for 'XXX' could not be found #507
This commit is contained in:
@@ -157,6 +157,7 @@ trunc_f32 :: proc(x: f32) -> f32 {
|
||||
switch classify(x) {
|
||||
case .Zero, .Neg_Zero, .NaN, .Inf, .Neg_Inf:
|
||||
return x;
|
||||
case .Normal, .Subnormal: // carry on
|
||||
}
|
||||
return trunc_internal(x);
|
||||
}
|
||||
@@ -186,6 +187,7 @@ trunc_f64 :: proc(x: f64) -> f64 {
|
||||
switch classify(x) {
|
||||
case .Zero, .Neg_Zero, .NaN, .Inf, .Neg_Inf:
|
||||
return x;
|
||||
case .Normal, .Subnormal: // carry on
|
||||
}
|
||||
return trunc_internal(x);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user