about summary refs log tree commit diff
path: root/src/math/powl.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/math/powl.c')
-rw-r--r--src/math/powl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/math/powl.c b/src/math/powl.c
index a765706d..5b6da07b 100644
--- a/src/math/powl.c
+++ b/src/math/powl.c
@@ -227,7 +227,7 @@ long double powl(long double x, long double y)
 	if (y <= -LDBL_MAX) {
 		if (x > 1.0 || x < -1.0)
 			return 0.0;
-		if (x != 0.0)
+		if (x != 0.0 || y == -INFINITY)
 			return INFINITY;
 	}
 	if (x >= LDBL_MAX) {