Re: [dev] [st] [PATCH] Explicit cast in CEIL macro

From: FRIGN <dev_AT_frign.de>
Date: Tue, 24 Jun 2014 18:36:34 +0200

On Tue, 24 Jun 2014 18:27:57 +0200
"Roberto E. Vargas Caballero" <k0ga_AT_shike2.com> wrote:

> > CEIL(x) ((int)(x) + ((x) > 0 && ((x) - (int)(x)) > FLT_EPSILON))
>
> This solution begins to be too much complex. In this case I begin to
> agree with Martti, and I think the best solution is to use ceil.

*ceilf

To the one writing the patch: Don't forget to cast the result of ceilf
to int ;).

Cheers

FRIGN

-- 
FRIGN <dev_AT_frign.de>
Received on Tue Jun 24 2014 - 18:36:34 CEST

This archive was generated by hypermail 2.3.0 : Tue Jun 24 2014 - 18:36:11 CEST