mirror of
https://github.com/odin-lang/Odin.git
synced 2026-02-14 07:13:14 +00:00
Fix #1004
This commit is contained in:
@@ -1184,6 +1184,7 @@ bool check_builtin_procedure(CheckerContext *c, Operand *operand, Ast *call, i32
|
||||
|
||||
{
|
||||
Type *bt = base_type(operands[0].type);
|
||||
if (are_types_identical(bt, t_f16)) add_package_dependency(c, "runtime", "min_f16");
|
||||
if (are_types_identical(bt, t_f32)) add_package_dependency(c, "runtime", "min_f32");
|
||||
if (are_types_identical(bt, t_f64)) add_package_dependency(c, "runtime", "min_f64");
|
||||
|
||||
@@ -1364,6 +1365,7 @@ bool check_builtin_procedure(CheckerContext *c, Operand *operand, Ast *call, i32
|
||||
|
||||
{
|
||||
Type *bt = base_type(operands[0].type);
|
||||
if (are_types_identical(bt, t_f16)) add_package_dependency(c, "runtime", "max_f16");
|
||||
if (are_types_identical(bt, t_f32)) add_package_dependency(c, "runtime", "max_f32");
|
||||
if (are_types_identical(bt, t_f64)) add_package_dependency(c, "runtime", "max_f64");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user