Skip to content
Snippets Groups Projects
Commit e3c7c490 authored by David Kågedal's avatar David Kågedal
Browse files

(frexp,FREXP): Return the right value instead of a nonexistant variable.

Rev: src/encode.c:1.7
parent d29dd6f6
No related branches found
No related tags found
No related merge requests found
...@@ -36,7 +36,7 @@ double frexp(double x, int *exp) ...@@ -36,7 +36,7 @@ double frexp(double x, int *exp)
double ret; double ret;
*exp=(int)ceil(log(x)/log(2.0)); *exp=(int)ceil(log(x)/log(2.0));
ret=(x*pow(2.0,(float)-*exp)); ret=(x*pow(2.0,(float)-*exp));
return tmp; return ret;
} }
#endif #endif
...@@ -48,7 +48,7 @@ double FREXP(double x, int *exp) ...@@ -48,7 +48,7 @@ double FREXP(double x, int *exp)
double ret; double ret;
*exp=(int)ceil(log(x)/log(2.0)); *exp=(int)ceil(log(x)/log(2.0));
ret=(x*pow(2.0,(float)-*exp)); ret=(x*pow(2.0,(float)-*exp));
return tmp; return ret;
} }
#endif #endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment