Add min and max for f32 and f64

This commit is contained in:
Rerumu
2022-06-27 20:18:55 -04:00
parent b8362d9e66
commit 5463b48e63
2 changed files with 30 additions and 1 deletions
+1 -1
View File
@@ -219,7 +219,7 @@ fn write_local_operation(head: &str, tail: &str, w: &mut dyn Write) -> Result<()
write!(w, "local {head}_{tail} = ")?;
match (head, tail) {
("abs" | "ceil" | "floor" | "sqrt" | "min" | "max", _) => write!(w, "math.{head} "),
("abs" | "ceil" | "floor" | "sqrt", _) => write!(w, "math.{head} "),
("rem", "i32") => write!(w, "math.fmod "),
("band" | "bor" | "bxor" | "bnot", _) => write!(w, "bit.{head} "),
("shl", _) => write!(w, "bit.lshift "),