No need for += when res is 0 anyway

This commit is contained in:
FRIGN 2016-03-07 01:43:26 +01:00 committed by sin
parent eebba22577
commit d585d4b028
1 changed files with 2 additions and 2 deletions

4
sort.c
View File

@ -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)];
}
}