http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47742
Manuel López-Ibáñez <manu at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |manu at gcc dot gnu.org --- Comment #2 from Manuel López-Ibáñez <manu at gcc dot gnu.org> 2011-02-15 23:15:03 UTC --- I think GCC (>= 4.4) should catch this -Wconversion is you drop the forced cast: long infc = LONG_MAX; double real_size = infc; No?