Remove a warning for conversion double->long. This has impacts on Windows.
PR: 849
This commit is contained in:
parent
18a6333180
commit
ec5d8a54e9
@ -641,9 +641,9 @@ fmtfp(
|
|||||||
multiplying by a factor of 10 */
|
multiplying by a factor of 10 */
|
||||||
fracpart = roundv((pow10(max)) * (ufvalue - intpart));
|
fracpart = roundv((pow10(max)) * (ufvalue - intpart));
|
||||||
|
|
||||||
if (fracpart >= pow10(max)) {
|
if (fracpart >= (long)pow10(max)) {
|
||||||
intpart++;
|
intpart++;
|
||||||
fracpart -= pow10(max);
|
fracpart -= (long)pow10(max);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* convert integer part */
|
/* convert integer part */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user