Changeset c1f44ca in mainline


Ignore:
Timestamp:
2018-04-15T12:33:43Z (6 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
ba3841e2
Parents:
18b6a88
Message:

Superfluous parentheses.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/clui/tinput.c

    r18b6a88 rc1f44ca  
    623623        unsigned int cols = max(1, (ti->con_cols + 1) / (max_width + 1));
    624624        unsigned int padding = 0;
    625         if ((cols * max_width) + (cols - 1) < ti->con_cols) {
    626                 padding = ti->con_cols - (cols * max_width) - (cols - 1);
     625        if (cols * max_width + (cols - 1) < ti->con_cols) {
     626                padding = ti->con_cols - cols * max_width - (cols - 1);
    627627        }
    628628        unsigned int col_width = max_width + padding / cols;
Note: See TracChangeset for help on using the changeset viewer.