aboutsummaryrefslogtreecommitdiffstats
path: root/sway/commands.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/commands.c')
-rw-r--r--sway/commands.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/commands.c b/sway/commands.c
index cb96703e..e90a40a3 100644
--- a/sway/commands.c
+++ b/sway/commands.c
@@ -106,7 +106,7 @@ static bool cmd_bindsym(struct sway_config *config, int argc, char **argv) {
106 // Check for a modifier key 106 // Check for a modifier key
107 int j; 107 int j;
108 bool is_mod = false; 108 bool is_mod = false;
109 for (j = 0; j < sizeof(modifiers) / sizeof(struct modifier_key); ++j) { 109 for (j = 0; j < (int)(sizeof(modifiers) / sizeof(struct modifier_key)); ++j) {
110 if (strcasecmp(modifiers[j].name, split->items[i]) == 0) { 110 if (strcasecmp(modifiers[j].name, split->items[i]) == 0) {
111 binding->modifiers |= modifiers[j].mod; 111 binding->modifiers |= modifiers[j].mod;
112 is_mod = true; 112 is_mod = true;
@@ -261,7 +261,7 @@ static bool cmd_floating_mod(struct sway_config *config, int argc, char **argv)
261 261
262 // set modifer keys 262 // set modifer keys
263 for (i = 0; i < split->length; ++i) { 263 for (i = 0; i < split->length; ++i) {
264 for (j = 0; j < sizeof(modifiers) / sizeof(struct modifier_key); ++j) { 264 for (j = 0; j < (int)(sizeof(modifiers) / sizeof(struct modifier_key)); ++j) {
265 if (strcasecmp(modifiers[j].name, split->items[i]) == 0) { 265 if (strcasecmp(modifiers[j].name, split->items[i]) == 0) {
266 config->floating_mod |= modifiers[j].mod; 266 config->floating_mod |= modifiers[j].mod;
267 } 267 }