http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47742
--- Comment #4 from dogbreath69 at hotmail dot com 2011-02-16 05:08:06 UTC --- I haven't tried it with anything greater than GCC 4.1.2. Therefore I do not know the answer. > From: gcc-bugzi...@gcc.gnu.org > To: dogbreat...@hotmail.com > Subject: [Bug c/47742] Large Values Increment By 1 When Casting Long to Double > Date: Tue, 15 Feb 2011 23:16:17 +0000 > > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47742 > > --- Comment #3 from Manuel López-Ibáñez <manu at gcc dot gnu.org> 2011-02-15 > 23:16:09 UTC --- > Let me try again: > > I think GCC (>= 4.4) should catch this using -Wconversion if you drop the > explicit > cast like in: > > long infc = LONG_MAX; > double real_size = infc; > > Doesn't it? > > -- > Configure bugmail: http://gcc.gnu.org/bugzilla/userprefs.cgi?tab=email > ------- You are receiving this mail because: ------- > You reported the bug.