mirror of
https://github.com/neovim/neovim.git
synced 2025-10-16 14:56:08 +00:00
refactor: don't use subtraction in qsort() comparison functions
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user