Warning for converting (possibly) negative float/double to unsigned int
Andrew Haley
aph@redhat.com
Sat Feb 27 10:40:00 GMT 2016
On 26/02/16 21:28, Bradley Lucier wrote:
> Any advice on how to proceed? I'd be willing to write and test the few
> lines of code myself if I knew where to put them.
The best thing, rather than warning, would be to define this
conversion as a GCC extension and implement it consistently
everywhere. Then we wouldn't need a warning, and there'd be
one fewer trap.
Andrew.
More information about the Gcc
mailing list