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

From: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
Date: Tue, 24 Jun 2014 12:23:56 +0200

> #define CEIL(x) ((int)(x) + ((x) > 0))

Wow, good solution. The only problem I can see is the return type, that
in your solution is integer. I think it is not a big problem because
this value will be used in some expression where the type convertion
will be done.

The original author of the commit was Eric Pruitt, so if he send
again the patch with this version of CEIL I will commit it.

Regards,

-- 
Roberto E. Vargas Caballero
Received on Tue Jun 24 2014 - 12:23:56 CEST

This archive was generated by hypermail 2.3.0 : Tue Jun 24 2014 - 12:36:04 CEST