[Spice-devel] [spice v3] utils: Remove the LL suffix from NSEC_PER_SEC

Francois Gouget fgouget at codeweavers.com
Wed Jul 3 10:31:29 UTC 2019


On Wed, 26 Jun 2019, Uri Lublin wrote:
[...]
> > I'd very much prefer the cast to be in the expression rather than hidden
> > in some far away macro.
> 
> Is that true even if the cast is needed in all the expressions
> that use this constant ?

Yes.

That's far from being the case though.
I count 8 casts out of 26 instances of NSEC_PER_SEC and its derivatives.

Anyway, since there's opposition to the 'no cast' approach I'll send a 
patch based on INT64_C() instead.

-- 
Francois Gouget <fgouget at codeweavers.com>


More information about the Spice-devel mailing list