Fix inconsistencies

Addendum to truncation rename

Rename constants for consistency
This commit is contained in:
Rerumu
2022-07-08 12:41:45 -04:00
parent bdfede0b93
commit efec6203b0
4 changed files with 83 additions and 84 deletions
-1
View File
@@ -227,7 +227,6 @@ fn write_local_operation(head: &str, tail: &str, w: &mut dyn Write) -> Result<()
("shr", "u32" | "u64") => write!(w, "bit.rshift "),
("rotl", _) => write!(w, "bit.rol "),
("rotr", _) => write!(w, "bit.ror "),
("trunc", "u32_f32" | "u32_f64") => write!(w, "math.floor "),
("convert", "f32_i64" | "f64_i64") => write!(w, "tonumber "),
_ => write!(w, "rt.{head}.{tail} "),
}