From f61535acb788b79f663f81561a6dd3986b0a27b2 Mon Sep 17 00:00:00 2001 From: Ryan Farley Date: Tue, 1 Feb 2022 18:56:55 -0600 Subject: [PATCH] Parentheses sometimes matter --- src/wl_input.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wl_input.c b/src/wl_input.c index a7667c7..d6b0258 100644 --- a/src/wl_input.c +++ b/src/wl_input.c @@ -86,7 +86,7 @@ static void load_raw_keymap(struct wlContext *ctx) rkey = strtol(val[i], &endstr, 0); if (errno || endstr == val[i]) continue; - ctx->input.raw_keymap[lkey] = rkey + offset_on_explicit ? offset : 0; + ctx->input.raw_keymap[lkey] = rkey + (offset_on_explicit ? offset : 0); logDbg("set raw key map: %d = %d", lkey, ctx->input.raw_keymap[lkey]); }