Fix Internal Compiler Error: Type_Info for 'XXX' could not be found #507

This commit is contained in:
gingerBill
2019-12-22 14:16:56 +00:00
parent cc2fa8f756
commit 1d14b3059e
4 changed files with 20 additions and 11 deletions
+2
View File
@@ -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);
}