Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#537 Add a check for implicit conversions

open
nobody
Check (274)
5
2012-10-10
2010-03-22
Roland Illig
No

In many cases, converting a float into a double results in a different decimal representation. So it may be flagged as a warning.

It would be useful to distinguish several cases:
widening conversion on floating point types (float -> double)
almost-always-widening conversion from an integer type to a floating point type (int -> float, long -> double)

Discussion