Signed-off-by: Martin Storsjö <[email protected]>
---
 mingw-w64-crt/math/lgammaf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mingw-w64-crt/math/lgammaf.c b/mingw-w64-crt/math/lgammaf.c
index 8c527dffc..b6a0581d5 100644
--- a/mingw-w64-crt/math/lgammaf.c
+++ b/mingw-w64-crt/math/lgammaf.c
@@ -52,7 +52,7 @@ float __lgammaf_r(float x, int* sgngamf)
 
 #ifdef INFINITIES
        if (!isfinite(x))
-               return (x);
+               return (INFINITY);
 #endif
 
        if (x < 0.0)
-- 
2.17.1



_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to