about summary refs log tree commit diff
path: root/src/math/powf.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/math/powf.c')
-rw-r--r--src/math/powf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/math/powf.c b/src/math/powf.c
index 427c8965..59baf6f3 100644
--- a/src/math/powf.c
+++ b/src/math/powf.c
@@ -90,7 +90,7 @@ float powf(float x, float y)
 			return 1.0f;
 		else if (ix > 0x3f800000)  /* (|x|>1)**+-inf = inf,0 */
 			return hy >= 0 ? y : 0.0f;
-		else                       /* (|x|<1)**+-inf = 0,inf */
+		else if (ix != 0)          /* (|x|<1)**+-inf = 0,inf if x!=0 */
 			return hy >= 0 ? 0.0f: -y;
 	}
 	if (iy == 0x3f800000)    /* y is +-1 */