diff options
author | zeertzjq <zeertzjq@outlook.com> | 2024-02-10 21:38:48 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2024-02-10 21:55:57 +0800 |
commit | 00e785b17fde8c476031e3c24ea77bed45b88a89 (patch) | |
tree | ec1bde5294d6227a435c20979e32c7bfd4e74ec8 /src/nvim/shada.c | |
parent | f3982ad3f3bc866c9369edfbd4125aaa092215a9 (diff) | |
download | rneovim-00e785b17fde8c476031e3c24ea77bed45b88a89.tar.gz rneovim-00e785b17fde8c476031e3c24ea77bed45b88a89.tar.bz2 rneovim-00e785b17fde8c476031e3c24ea77bed45b88a89.zip |
refactor: don't use subtraction in qsort() comparison functions
Diffstat (limited to 'src/nvim/shada.c')
-rw-r--r-- | src/nvim/shada.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/nvim/shada.c b/src/nvim/shada.c index 61c43e271b..2c8685adc7 100644 --- a/src/nvim/shada.c +++ b/src/nvim/shada.c @@ -1875,9 +1875,7 @@ static int compare_file_marks(const void *a, const void *b) const FileMarks *const *const b_fms = b; return ((*a_fms)->greatest_timestamp == (*b_fms)->greatest_timestamp ? 0 - : ((*a_fms)->greatest_timestamp > (*b_fms)->greatest_timestamp - ? -1 - : 1)); + : ((*a_fms)->greatest_timestamp > (*b_fms)->greatest_timestamp ? -1 : 1)); } /// Parse msgpack object that has given length |