[PATCH 1/4] msvcr120: Don't double-check error conditions in log2f.
Alex Henrie
alexhenrie24 at gmail.com
Thu Jul 27 03:26:22 CDT 2017
Signed-off-by: Alex Henrie <alexhenrie24 at gmail.com>
---
dlls/msvcrt/math.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/msvcrt/math.c b/dlls/msvcrt/math.c
index 079446d04e..1d61396e59 100644
--- a/dlls/msvcrt/math.c
+++ b/dlls/msvcrt/math.c
@@ -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);
--
2.13.3
More information about the wine-patches
mailing list