fix compiler warning; pow10 is also in math.h
This commit is contained in:
@@ -576,7 +576,7 @@ abs_val(LDOUBLE value)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static LDOUBLE
|
static LDOUBLE
|
||||||
pow10(int in_exp)
|
pow_10(int in_exp)
|
||||||
{
|
{
|
||||||
LDOUBLE result = 1;
|
LDOUBLE result = 1;
|
||||||
while (in_exp) {
|
while (in_exp) {
|
||||||
@@ -640,8 +640,8 @@ fmtfp(
|
|||||||
|
|
||||||
/* we "cheat" by converting the fractional part to integer by
|
/* we "cheat" by converting the fractional part to integer by
|
||||||
multiplying by a factor of 10 */
|
multiplying by a factor of 10 */
|
||||||
max10 = roundv(pow10(max));
|
max10 = roundv(pow_10(max));
|
||||||
fracpart = roundv(pow10(max) * (ufvalue - intpart));
|
fracpart = roundv(pow_10(max) * (ufvalue - intpart));
|
||||||
|
|
||||||
if (fracpart >= max10) {
|
if (fracpart >= max10) {
|
||||||
intpart++;
|
intpart++;
|
||||||
|
Reference in New Issue
Block a user