mirror of
https://github.com/openssl/openssl.git
synced 2025-01-30 14:01:55 +08:00
fix compiler warning; pow10 is also in math.h
This commit is contained in:
parent
831721ef49
commit
2c288b2a7e
@ -576,7 +576,7 @@ abs_val(LDOUBLE value)
|
||||
}
|
||||
|
||||
static LDOUBLE
|
||||
pow10(int in_exp)
|
||||
pow_10(int in_exp)
|
||||
{
|
||||
LDOUBLE result = 1;
|
||||
while (in_exp) {
|
||||
@ -640,8 +640,8 @@ fmtfp(
|
||||
|
||||
/* we "cheat" by converting the fractional part to integer by
|
||||
multiplying by a factor of 10 */
|
||||
max10 = roundv(pow10(max));
|
||||
fracpart = roundv(pow10(max) * (ufvalue - intpart));
|
||||
max10 = roundv(pow_10(max));
|
||||
fracpart = roundv(pow_10(max) * (ufvalue - intpart));
|
||||
|
||||
if (fracpart >= max10) {
|
||||
intpart++;
|
||||
|
Loading…
Reference in New Issue
Block a user