mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 07:38:48 +00:00
Removed undefined & usused vars
Removed undefined& usused vars in init_from_parts
This commit is contained in:
@@ -39,7 +39,6 @@ init_from_f64 :: proc(x: ^$T/Fixed($Backing, $Fraction_Width), val: f64) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
init_from_parts :: proc(x: ^$T/Fixed($Backing, $Fraction_Width), integer, fraction: Backing) {
|
init_from_parts :: proc(x: ^$T/Fixed($Backing, $Fraction_Width), integer, fraction: Backing) {
|
||||||
i, f := math.modf(val)
|
|
||||||
x.i = fraction
|
x.i = fraction
|
||||||
x.i &= 1<<Fraction_Width - 1
|
x.i &= 1<<Fraction_Width - 1
|
||||||
x.i |= integer
|
x.i |= integer
|
||||||
|
|||||||
Reference in New Issue
Block a user