mirror of
https://github.com/cc65/cc65.git
synced 2025-01-12 17:30:50 +00:00
accidental tabs, printf long expectts explicit %ld
This commit is contained in:
parent
2ac9c6f51e
commit
dbdadaa3f3
@ -129,7 +129,7 @@ static void DoConversion (ExprDesc* Expr, const Type* NewType, int Explicit)
|
||||
if (IsClassFloat (OldType) && IsClassInt (NewType)) {
|
||||
long IVal = (long)Expr->V.FVal.V;
|
||||
if ((Expr->V.FVal.V != FP_D_FromInt(IVal).V) && !Explicit) {
|
||||
Warning ("Floating point constant (%f) converted to integer loses precision (%d)",Expr->V.FVal.V,IVal);
|
||||
Warning ("Floating point constant (%f) converted to integer loses precision (%ld)",Expr->V.FVal.V,IVal);
|
||||
}
|
||||
Expr->IVal = IVal;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user