From be504cd0d62805663345dc4627769f74902521ac Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 7 Jun 2026 14:12:19 +0200 Subject: m MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- cmap.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'cmap.c') diff --git a/cmap.c b/cmap.c index 66ac2fd..c1eb23a 100644 --- a/cmap.c +++ b/cmap.c @@ -167,10 +167,10 @@ maybe_sat_parse_int_as_uint(const char *s, unsigned int *out, int *setp) *setp = 1; for (; isdigit(*s); s++) { digit = (unsigned int)(*s & 15); - if (*out > ((unsigned int)INT_MAX - digit) / 10U) + if (*out > ((unsigned int)INT_MAX - digit) / 10u) *out = (unsigned int)INT_MAX; else - *out = *out * 10U + digit; + *out = *out * 10u + digit; } return s; } @@ -245,13 +245,13 @@ handle_keyboard_input(union libterminput_input *input) if (input->keypress.key == LIBTERMINPUT_LEFT) { automatic_left_pane_width = 0; if (left_pane_width) { - left_pane_width -= 1U; + left_pane_width -= 1u; goto redraw; } } else if (input->keypress.key == LIBTERMINPUT_RIGHT) { automatic_left_pane_width = 0; - if (term_width && left_pane_width < term_width - 1U) { - left_pane_width += 1U; + if (term_width && left_pane_width < term_width - 1u) { + left_pane_width += 1u; goto redraw; } } -- cgit v1.3.1