]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libsmartcols: fix columns reduction
authorKarel Zak <kzak@redhat.com>
Thu, 18 Jan 2024 12:09:24 +0000 (13:09 +0100)
committerKarel Zak <kzak@redhat.com>
Fri, 19 Jan 2024 10:52:38 +0000 (11:52 +0100)
commitbb525b59190e3b40b2424f4f1febc22ca9c6b9f3
tree63b008515e5bee02d055e1f1ac87d0dcb8dd7556
parent6c639c8408194c74055a188d5b2707a3b5314f5e
libsmartcols: fix columns reduction

* reduce_to_68() does not care if subtract from column width is
  possible (and width is size_t)

* improve some calculations with 'double'

Fixes: https://github.com/util-linux/util-linux/issues/2563
Signed-off-by: Karel Zak <kzak@redhat.com>
libsmartcols/src/calculate.c