[hackers] [sbase] No need for += when res is 0 anyway || FRIGN

From: <git_AT_suckless.org>
Date: Thu, 10 Mar 2016 09:48:17 +0100 (CET)

commit d585d4b0286f014c2a8217e45123e8bd889c809f
Author: FRIGN <dev_AT_frign.de>
AuthorDate: Mon Mar 7 01:43:26 2016 +0100
Commit: sin <sin_AT_2f30.org>
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
_AT_@ -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)];
                         }
                 }
 
Received on Thu Mar 10 2016 - 09:48:17 CET

This archive was generated by hypermail 2.3.0 : Thu Mar 10 2016 - 10:00:32 CET