diff options
author | José Fonseca <[email protected]> | 2008-04-15 15:40:35 +0900 |
---|---|---|
committer | José Fonseca <[email protected]> | 2008-04-15 15:40:35 +0900 |
commit | d005befcb9e191ae90619fbdd3c37e262ae3b03e (patch) | |
tree | e7ddc28306ea8ad14123ffbf764f94930d9e7bf7 /src/gallium/auxiliary/util/u_time.c | |
parent | 50bbbbe581edd6b8d4fe9f8ba7f134e17dc80a0b (diff) |
gallium: Less confusing interface for timeouts.
Diffstat (limited to 'src/gallium/auxiliary/util/u_time.c')
-rw-r--r-- | src/gallium/auxiliary/util/u_time.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/auxiliary/util/u_time.c b/src/gallium/auxiliary/util/u_time.c index 04f85c42efb..01112ebe5aa 100644 --- a/src/gallium/auxiliary/util/u_time.c +++ b/src/gallium/auxiliary/util/u_time.c @@ -120,15 +120,15 @@ util_time_compare(const struct util_time *t1, } -int +boolean util_time_timeout(const struct util_time *start, const struct util_time *end, const struct util_time *curr) { if(util_time_compare(start, end) <= 0) - return util_time_compare(start, curr) <= 0 && util_time_compare(curr, end) < 0; + return !(util_time_compare(start, curr) <= 0 && util_time_compare(curr, end) < 0); else - return util_time_compare(start, curr) <= 0 || util_time_compare(curr, end) < 0; + return !(util_time_compare(start, curr) <= 0 || util_time_compare(curr, end) < 0); } |