[cairo] Tiny bug in fixed_integer_ceil

Carl Worth cworth at cworth.org
Thu Aug 18 09:45:02 PDT 2005


On Tue, 16 Aug 2005 21:58:22 -0400 (EDT), Behdad Esfahbod wrote:
> The current code would return 1 for 0, which is wrong.

More precisely, the current code depends on implementation-defined
behavior, (>> with a negative left operand). For what it's worth, the
implementation on my system returns 0 for 0.

Since the point of the function as it is currently written is to avoid
>> with a negative left operand, I've committed this change.

-Carl
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/cairo/attachments/20050818/871864dd/attachment-0001.pgp


More information about the cairo mailing list