Browse Source

Fix sqrt for simd

gingerBill 3 years ago
parent
commit
5c10b35df7
1 changed files with 1 additions and 6 deletions
  1. 1 6
      src/check_builtin.cpp

+ 1 - 6
src/check_builtin.cpp

@@ -3704,12 +3704,7 @@ bool check_builtin_procedure(CheckerContext *c, Operand *operand, Ast *call, i32
 					return false;
 				}
 			}
-			if (!is_type_float(x.type)) {
-				gbString xts = type_to_string(x.type);
-				error(x.expr, "Expected a floating point value for '%.*s', got %s", LIT(builtin_name), xts);
-				gb_string_free(xts);
-				return false;
-			} else if (x.mode == Addressing_Constant) {
+			if (is_type_float(x.type) && x.mode == Addressing_Constant) {
 				f64 v = exact_value_to_f64(x.value);
 
 				operand->mode = Addressing_Constant;