From da0453d356456c352f92c336a8c6d3cc3b1757ae Mon Sep 17 00:00:00 2001 From: Viktor Zoutman Date: Wed, 18 Nov 2020 16:14:19 +0100 Subject: [PATCH] Update math_ext.rs --- crates/spirv-std/src/math_ext.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/spirv-std/src/math_ext.rs b/crates/spirv-std/src/math_ext.rs index bab8afdefa..c5b5495d9d 100644 --- a/crates/spirv-std/src/math_ext.rs +++ b/crates/spirv-std/src/math_ext.rs @@ -78,7 +78,7 @@ impl MathExt for f32 { } fn fract(self) -> f32 { - self - self.floor() + self - self.trunc() } fn signum(self) -> f32 {