On Thu, Oct 30, 2008 at 9:12 PM, Jorge Peixoto de Morais Neto
<[EMAIL PROTECTED]> wrote:
> It seems you did not get the point. To attribute a floating point
> number to an integer variable is perfectly valid, depending on the
> specific program.  The compiler normally does not even warn about
> this, as this is perfectly valid (from my testing, the compiler only
> warns if you are using gcc 4.3, and specify -Wconversion, an option
> that is not included in -Wall and not even in -Wextra).

Yes, you are right. I was doing what some people would like to call
speaking out of my ass :) C++ compiled with gcc does give you a
warning with -Wall. I just assumed that C did the same, its been some
time since I coded pure C.

Regards
Dirk

Reply via email to