diff options
author | minus <[email protected]> | 2015-08-21 16:53:11 +0200 |
---|---|---|
committer | minus <[email protected]> | 2015-08-21 16:53:11 +0200 |
commit | 8dfaf6265be52a582cc990f4332808d55063766f (patch) | |
tree | f31d5042629c27a6fbba0cb73f2b93433dce247a /sway/commands.c | |
parent | 7ecb55f218666ec5c30371eeb9e5982a487fdb4b (diff) |
fixed #108 signed/unsigned comparison
Diffstat (limited to 'sway/commands.c')
-rw-r--r-- | sway/commands.c | 4 |
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) { // Check for a modifier key int j; bool is_mod = false; - for (j = 0; j < sizeof(modifiers) / sizeof(struct modifier_key); ++j) { + for (j = 0; j < (int)(sizeof(modifiers) / sizeof(struct modifier_key)); ++j) { if (strcasecmp(modifiers[j].name, split->items[i]) == 0) { binding->modifiers |= modifiers[j].mod; is_mod = true; @@ -261,7 +261,7 @@ static bool cmd_floating_mod(struct sway_config *config, int argc, char **argv) // set modifer keys for (i = 0; i < split->length; ++i) { - for (j = 0; j < sizeof(modifiers) / sizeof(struct modifier_key); ++j) { + for (j = 0; j < (int)(sizeof(modifiers) / sizeof(struct modifier_key)); ++j) { if (strcasecmp(modifiers[j].name, split->items[i]) == 0) { config->floating_mod |= modifiers[j].mod; } |