[CRT:MATH] Fix a bug in _handle_error

This commit is contained in:
Timo Kreuzer 2025-05-26 23:13:10 +03:00
parent 35bc1e1d9e
commit d736b55644

View file

@ -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);