diff options
author | Mattias Andrée <maandree@kth.se> | 2018-02-20 21:16:06 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2018-02-20 21:16:06 +0100 |
commit | 96035c2958bc2a29fabdca1372689a36d4e869de (patch) | |
tree | de91a9826a4325d84f287032abf7613d738ef508 | |
parent | Treat all files as regular files (diff) | |
download | loc-96035c2958bc2a29fabdca1372689a36d4e869de.tar.gz loc-96035c2958bc2a29fabdca1372689a36d4e869de.tar.bz2 loc-96035c2958bc2a29fabdca1372689a36d4e869de.tar.xz |
Improve readability
Signed-off-by: Mattias Andrée <maandree@kth.se>
-rw-r--r-- | loc.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -174,11 +174,9 @@ main(int argc, char *argv[]) } if (res[i].n >= 0) { left = strwidth(argv[i]); - if (left > maxleft) - maxleft = left; + left = left > maxleft ? left : maxleft; right = zuwidth(res[i].n); - if (right > maxright) - maxright = right; + right = right > maxright ? right : maxright; res[i].width = left + right; } } |