commit d585d4b0286f014c2a8217e45123e8bd889c809f
Author:     FRIGN <[email protected]>
AuthorDate: Mon Mar 7 01:43:26 2016 +0100
Commit:     sin <[email protected]>
CommitDate: Thu Mar 10 08:48:09 2016 +0000

    No need for += when res is 0 anyway

diff --git a/sort.c b/sort.c
index cb6f851..6479461 100644
--- a/sort.c
+++ b/sort.c
@@ -195,8 +195,8 @@ linecmp(struct linebufline *a, struct linebufline *b)
                } else {
                        if (!(res = memcmp(col1.data, col2.data,
                                           MIN(col1.len, col2.len)))) {
-                               res += col1.data[MIN(col1.len, col2.len)] -
-                                      col2.data[MIN(col1.len, col2.len)];
+                               res = col1.data[MIN(col1.len, col2.len)] -
+                                     col2.data[MIN(col1.len, col2.len)];
                        }
                }
 

Reply via email to