From ec1992df762fd01d25c13385beab1ce964d47faa Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Fri, 13 Dec 2024 09:05:13 -0800 Subject: [PATCH] Fix pulley no_std build --- pulley/src/interp.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pulley/src/interp.rs b/pulley/src/interp.rs index 5df690fd82f..821418cbf9a 100644 --- a/pulley/src/interp.rs +++ b/pulley/src/interp.rs @@ -2136,14 +2136,14 @@ impl OpVisitor for Interpreter<'_> { fn fcopysign32(&mut self, operands: BinaryOperands) -> ControlFlow { let a = self.state[operands.src1].get_f32(); let b = self.state[operands.src2].get_f32(); - self.state[operands.dst].set_f32(a.copysign(b)); + self.state[operands.dst].set_f32(a.wasm_copysign(b)); ControlFlow::Continue(()) } fn fcopysign64(&mut self, operands: BinaryOperands) -> ControlFlow { let a = self.state[operands.src1].get_f64(); let b = self.state[operands.src2].get_f64(); - self.state[operands.dst].set_f64(a.copysign(b)); + self.state[operands.dst].set_f64(a.wasm_copysign(b)); ControlFlow::Continue(()) }