summaryrefslogtreecommitdiff
path: root/sway/commands.c
diff options
context:
space:
mode:
authorDrew DeVault <[email protected]>2015-08-21 10:56:56 -0400
committerDrew DeVault <[email protected]>2015-08-21 10:56:56 -0400
commit034358dbfd07e013417bafcbcc819ddad90a2f21 (patch)
treef31d5042629c27a6fbba0cb73f2b93433dce247a /sway/commands.c
parent7ecb55f218666ec5c30371eeb9e5982a487fdb4b (diff)
parent8dfaf6265be52a582cc990f4332808d55063766f (diff)
Merge pull request #110 from minus7/sign-comparsion-fix
fixed #108 signed/unsigned comparison
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) {
// 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;
}