commit d585d4b0286f014c2a8217e45123e8bd889c809f
parent eebba22577d649952ff4b4e456a0dc2e26811171
Author: FRIGN <dev@frign.de>
Date: Mon, 7 Mar 2016 01:43:26 +0100
No need for += when res is 0 anyway
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git 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)];
}
}