corrected
This commit is contained in:
parent
8036ca8aec
commit
cd893a6ff8
|
@ -16,6 +16,7 @@
|
||||||
|
|
||||||
#include "FP_types.h"
|
#include "FP_types.h"
|
||||||
|
|
||||||
|
_float
|
||||||
cuf4(ss,src)
|
cuf4(ss,src)
|
||||||
int ss; /* source size */
|
int ss; /* source size */
|
||||||
long src; /* largest possible integer to convert */
|
long src; /* largest possible integer to convert */
|
||||||
|
@ -41,7 +42,8 @@ long src; /* largest possible integer to convert */
|
||||||
fprintf(stderr,"CUF4(ds(%d),ss(%d),src(%D))\n\n",4,ss,i_src);
|
fprintf(stderr,"CUF4(ds(%d),ss(%d),src(%D))\n\n",4,ss,i_src);
|
||||||
#endif
|
#endif
|
||||||
if (i_src == 0) {
|
if (i_src == 0) {
|
||||||
src = 0L;
|
*result = (_float) 0L;
|
||||||
|
return (_float) 0L;
|
||||||
}
|
}
|
||||||
/* ESTABLISHED THAT src != 0 */
|
/* ESTABLISHED THAT src != 0 */
|
||||||
|
|
||||||
|
@ -58,4 +60,5 @@ long src; /* largest possible integer to convert */
|
||||||
fprintf(stderr,"CUF() buf.exp after nrm_ext() == %d\n\n",buf.exp);
|
fprintf(stderr,"CUF() buf.exp after nrm_ext() == %d\n\n",buf.exp);
|
||||||
#endif
|
#endif
|
||||||
compact(&buf,(_double *) result,4);
|
compact(&buf,(_double *) result,4);
|
||||||
|
return *result;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue