John Love-Jensen wrote:
The warning does not indicate that there is anything wrong with the code itself. The warning is justified, warranted, and desirable if/when/where -Wconversion is specified, since the warning tells you that something funny is happening that may not be apparent from the code itself, on that particular platform.
We've worked around it for now by just passing the arguments by-reference instead. In this application it makes very little difference, and may in fact be slightly faster.