Re: [dev] [st] [PATCH] Explicit cast in CEIL macro
On Tue, Jun 24, 2014 at 03:33:10PM +0200, FRIGN wrote:
> However, I favor Martti's verson, which is just plain genius:
>
> CEIL(x) ((int)(x) + ((x) > 0))
Perhaps I'm missing something here, but this completely fails whenever
(x) is already a whole number; CEIL(3.0) => 4.0 which is not the correct
behaviour.
Eric
Received on Tue Jun 24 2014 - 16:46:33 CEST
This archive was generated by hypermail 2.3.0
: Tue Jun 24 2014 - 16:48:10 CEST