commit | d585d4b0286f014c2a8217e45123e8bd889c809f | [log] [tgz] |
---|---|---|
author | FRIGN <dev@frign.de> | Mon Mar 07 01:43:26 2016 +0100 |
committer | sin <sin@2f30.org> | Thu Mar 10 08:48:09 2016 +0000 |
tree | 6727e4823461fa5f902ac9ac0f7308e2fd078a04 | |
parent | eebba22577d649952ff4b4e456a0dc2e26811171 [diff] |
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 @@ } 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)]; } }