mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Make more of the builtins do promotion from int to double for convenience.
This commit is contained in:
committed by
Christoffer Lerno
parent
50b0958fb6
commit
2123e81e8e
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user