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

From: Roberto E. Vargas Caballero <>
Date: Sat, 21 Jun 2014 09:58:16 +0200

On Wed, Jun 18, 2014 at 09:09:19AM -0500, Eric Pruitt wrote:
> This patch ads explicit casting for the result of the CEIL macro. Since
> the only place it's currently used for assignments is with variables
> declared as ints, this shouldn't result in any change in behaviour in
> the existing code, but it ensures the macro actually does exactly what
> it says on the tin.

I do not understand why CEIL should return an integer value. From my
point of view it should return a value of any type that is the ceil
of the parameter. Can you explain a bit better why you think result
must be integer?


Roberto E. Vargas Caballero
Received on Sat Jun 21 2014 - 09:58:16 CEST

This archive was generated by hypermail 2.3.0 : Sat Jun 21 2014 - 10:00:10 CEST