Bug #2763
closedRemove "implicit numeric widening" warning
Description
When compiling Rudder, there is a lot of "implicit numeric widening" warnings that may signal logic errors.
We must correct them.
Updated by François ARMAND over 12 years ago
- Status changed from 2 to Pending technical review
- % Done changed from 0 to 100
Applied in changeset 62d09d3a23cc749adad78fdc560bec12a2dbd0fc.
Updated by Nicolas CHARLES over 12 years ago
This is probably correct, but I'm a bit confused by the toSize transformed to toSize.toLong in the tests... what would be their benefits ?
Updated by Nicolas PERRON over 12 years ago
Nicolas CHARLES wrote:
This is probably correct, but I'm a bit confused by the toSize transformed to toSize.toLong in the tests... what would be their benefits ?
François, could we consider this as an positive technical review ?
Updated by François ARMAND over 12 years ago
@Nicolas P: I think so.
@Nicolas C: the goal of the ticket is to remove "implicit numeric widening", i.e for example when an Int is passed to a method waiting for a Long. Hence, the "toLong". Its benefits is that we have less warning.
Updated by Nicolas PERRON over 12 years ago
Ok, I better understand now. I pass this issue to 2.4.0~beta3 and we can close this ticket.
Updated by Nicolas PERRON over 12 years ago
- Target version changed from 2.4.0~beta4 to 2.4.0~beta3
François, can you close this issue, please ?
Updated by Nicolas CHARLES about 12 years ago
- Status changed from Pending technical review to Released
Ha, for some reason, the commit have been done twice