diff options
author | Jason Ekstrand <[email protected]> | 2019-09-19 15:17:24 -0500 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2019-09-20 17:37:25 +0000 |
commit | dae33052dbfec843d5e997dbd93049d702977fa6 (patch) | |
tree | ecb34fd5b67cae561df8d2cb187abcaf379763f4 /src/intel/tools | |
parent | d35d7346d2446d8638b90425607c3f25fc339008 (diff) |
util/rb_tree: Reverse the order of comparison functions
The new order matches that of the comparison functions accepted by the C
standard library qsort() functions. Being consistent with qsort will
hopefully help avoid developer confusion.
The only current user of the red-black tree is aub_mem.c which is pretty
easy to fix up.
Reviewed-by: Lionel Landwerlin <[email protected]>
Diffstat (limited to 'src/intel/tools')
-rw-r--r-- | src/intel/tools/aub_mem.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/intel/tools/aub_mem.c b/src/intel/tools/aub_mem.c index f436627d19d..2f70afc8b76 100644 --- a/src/intel/tools/aub_mem.c +++ b/src/intel/tools/aub_mem.c @@ -87,9 +87,9 @@ static inline int cmp_uint64(uint64_t a, uint64_t b) { if (a < b) - return -1; - if (a > b) return 1; + if (a > b) + return -1; return 0; } |