Make more of the builtins do promotion from int to double for convenience.

This commit is contained in:
Christoffer Lerno
2023-01-13 00:46:00 +01:00
committed by Christoffer Lerno
parent 50b0958fb6
commit 2123e81e8e
5 changed files with 83 additions and 33 deletions

View File

@@ -98,7 +98,8 @@ static bool sema_check_builtin_args(Expr **args, BuiltinArg *arg_type, size_t ar
case BA_FLOATLIKE:
if (!type_flat_is_floatlike(type))
{
SEMA_ERROR(args[i], "Expected a floating point or floating point vector.");
SEMA_ERROR(args[i], "Expected a floating point or floating point vector, but was %s.",
type_quoted_error_string(type));
return false;
}
break;