Merge pull request #71 from alexfru/master

Fix infinite loop in ldexp(0.0, any).
This commit is contained in:
Serge Vakulenko
2016-01-24 01:55:25 -08:00

View File

@@ -9,6 +9,8 @@ ldexp(fr, exp)
int neg; int neg;
int i; int i;
if (fr == 0)
return 0;
neg = 0; neg = 0;
if (fr < 0) { if (fr < 0) {
fr = -fr; fr = -fr;