From d736b55644e55332b8323e3987edb2033f4521c3 Mon Sep 17 00:00:00 2001 From: Timo Kreuzer Date: Mon, 26 May 2025 23:13:10 +0300 Subject: [PATCH] [CRT:MATH] Fix a bug in _handle_error --- sdk/lib/crt/math/libm_sse2/_handle_error.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sdk/lib/crt/math/libm_sse2/_handle_error.c b/sdk/lib/crt/math/libm_sse2/_handle_error.c index 4d679a292ea..305931ee203 100644 --- a/sdk/lib/crt/math/libm_sse2/_handle_error.c +++ b/sdk/lib/crt/math/libm_sse2/_handle_error.c @@ -17,7 +17,7 @@ _invoke_matherr( double retval); /*! - * @brief Handles an error condition. + * @brief Handles an error condition. * @param fname - The name of the function that caused the error. * @param opcode - Opcode of the function that cause the error (see OP_* consants in fpieee.h). * @param value - The value to be returned, encoded as uint64_t. @@ -42,7 +42,7 @@ _handle_error( double arg2, int nargs) { - float retval = *(double*)&value; + double retval = *(double*)&value; _invoke_matherr(type, fname, arg1, arg2, retval);