On Sun,  6 Mar 2011 20:39:46 +0100, Cyril Brulebois <[email protected]> wrote:

> Accordingly, replace all:
>   (int) (foo-bar) <= 0
> tests with:
>   foo <= bar

For testing time values, the original code is what we want.

Consider:

        0xffffffff and 0x00000000

        (int) (0xffffffff - 0x00000000) <= 0    TRUE

        0xffffffff <= 0x00000000                FALSE

We want the former result, not the latter.

-- 
[email protected]

Attachment: pgpvDT2wZy9kP.pgp
Description: PGP signature

_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to