Commit 417b2a4f authored by Alex Henrie's avatar Alex Henrie Committed by Alexandre Julliard

msvcr120: Don't double-check error conditions in log2f.

parent 792e7046
......@@ -2510,9 +2510,9 @@ double CDECL MSVCR120_log2(double x)
*/
float CDECL MSVCR120_log2f(float x)
{
#ifdef HAVE_LOG2F
if (x < 0) *MSVCRT__errno() = MSVCRT_EDOM;
else if (x == 0) *MSVCRT__errno() = MSVCRT_ERANGE;
#ifdef HAVE_LOG2F
return log2f(x);
#else
return MSVCR120_log2(x);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment