Skip to content

Commit d736b55

Browse files
committed
[CRT:MATH] Fix a bug in _handle_error
1 parent 35bc1e1 commit d736b55

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sdk/lib/crt/math/libm_sse2/_handle_error.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ _invoke_matherr(
1717
double retval);
1818

1919
/*!
20-
* @brief Handles an error condition.
20+
* @brief Handles an error condition.
2121
* @param fname - The name of the function that caused the error.
2222
* @param opcode - Opcode of the function that cause the error (see OP_* consants in fpieee.h).
2323
* @param value - The value to be returned, encoded as uint64_t.
@@ -42,7 +42,7 @@ _handle_error(
4242
double arg2,
4343
int nargs)
4444
{
45-
float retval = *(double*)&value;
45+
double retval = *(double*)&value;
4646

4747
_invoke_matherr(type, fname, arg1, arg2, retval);
4848

0 commit comments

Comments
 (0)