[g2clib] Fix warning about conversion from double to float

This commit is contained in:
Roland Winklmeier
2016-01-12 23:27:54 +01:00
parent c226b07c5b
commit 2fa0c669df
7 changed files with 38 additions and 37 deletions

View File

@@ -60,17 +60,17 @@ void rdieee(g2int *rieee,g2float *a,g2int num)
if ( (iexp > 0) && (iexp < 255) ) {
temp=(g2float)int_power(2.0,(iexp-127));
a[j]=sign*temp*(1.0+(two23*(g2float)imant));
a[j]=sign*temp*(1.0f+(two23*(g2float)imant));
}
else if ( iexp == 0 ) {
if ( imant != 0 )
a[j]=sign*two126*two23*(g2float)imant;
else
a[j]=sign*0.0;
a[j]=sign*0.0f;
}
else if ( iexp == 255 )
a[j]=sign*(1E+37);
a[j]=sign*(1E+37f);
}