aboutsummaryrefslogtreecommitdiffstats
path: root/cmap.c
diff options
context:
space:
mode:
authorMattias Andrée <m@maandree.se>2026-06-07 14:12:19 +0200
committerMattias Andrée <m@maandree.se>2026-06-07 14:12:19 +0200
commitbe504cd0d62805663345dc4627769f74902521ac (patch)
tree6276f9e0d8aa857d6e3a2758bcfca776d5659fbf /cmap.c
parentFirst commit (diff)
downloadcmap-be504cd0d62805663345dc4627769f74902521ac.tar.gz
cmap-be504cd0d62805663345dc4627769f74902521ac.tar.bz2
cmap-be504cd0d62805663345dc4627769f74902521ac.tar.xz
Signed-off-by: Mattias Andrée <m@maandree.se>
Diffstat (limited to '')
-rw-r--r--cmap.c10
1 files changed, 5 insertions, 5 deletions
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;
}
}