On Mon, Jan 17, 2011 at 02:56:57PM -0500, Wietse Venema wrote:

> Well this is the code:
> 
>     psc_lowat_check_queue_length = .7 * var_psc_pre_queue_limit;
>     psc_hiwat_check_queue_length = .9 * var_psc_pre_queue_limit;

Is the compiler first converting 0.7 to an integer and *then* doing
the multiplication?

That would violate the C arithmetic type promotion rules.

-- 
        Viktor.

Reply via email to