From 6571f07c7eb3a8cfa235d99e6d9fcd39c03299f9 Mon Sep 17 00:00:00 2001 From: thebirk Date: Fri, 8 Feb 2019 12:51:36 +0100 Subject: [PATCH] Fixed typo in copy_sign_f64. --- core/math/math.odin | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/math/math.odin b/core/math/math.odin index 68f19007d..ea2119ecd 100644 --- a/core/math/math.odin +++ b/core/math/math.odin @@ -88,7 +88,7 @@ copy_sign_f32 :: proc(x, y: f32) -> f32 { copy_sign_f64 :: proc(x, y: f64) -> f64 { ix := transmute(u64)x; iy := transmute(u64)y; - ix &= 0x7fff_ffff_ffff_ff; + ix &= 0x7fff_ffff_ffff_ffff; ix |= iy & 0x8000_0000_0000_0000; return transmute(f64)ix; }