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

Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alex Henrie 2017-07-27 02:26:22 -06:00 committed by Alexandre Julliard
parent 792e7046a6
commit 417b2a4f52
1 changed files with 1 additions and 1 deletions

View File

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