[core]: Remove do keyword from the core library

This commit is contained in:
flysand7
2023-11-11 20:36:38 +11:00
parent 59675949da
commit 270348b112
9 changed files with 273 additions and 237 deletions
+3 -1
View File
@@ -33,7 +33,9 @@ init_from_f64 :: proc(x: ^$T/Fixed($Backing, $Fraction_Width), val: f64) {
x.i = Backing(f * (1<<Fraction_Width))
x.i &= 1<<Fraction_Width - 1
x.i |= Backing(i) << Fraction_Width
if val < 0 do x.i *= -1
if val < 0 {
x.i *= -1
}
}
init_from_parts :: proc(x: ^$T/Fixed($Backing, $Fraction_Width), integer, fraction: Backing) {