summaryrefslogtreecommitdiff
path: root/keymash.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--keymash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/keymash.c b/keymash.c
index ab635e9..095529a 100644
--- a/keymash.c
+++ b/keymash.c
@@ -55,7 +55,7 @@ main (int argc, char *argv[]) {
}
switchup = switchup > 0 ? 0 : switchup-1;
}
- if (switchup < 2 || switchup > -2) {
+ if (switchup < 2 && switchup > -2) {
val = abs(rand() % 2);
} else {
val = switchup < 0 ? 0 : 1;