summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoraxtlos <axtlos@getcryst.al>2024-04-05 00:04:38 +0200
committeraxtlos <axtlos@getcryst.al>2024-04-05 00:04:38 +0200
commit14ce1a6564b6adaba91b518b971cc7be42149dd0 (patch)
treea271ca095b2fe5ce4849b0a7f39e35884a5a2ebf
parent02d5273674d2da06b1808b6d6877ef65c9a936b6 (diff)
downloadgenkeymash-14ce1a6564b6adaba91b518b971cc7be42149dd0.tar.gz
genkeymash-14ce1a6564b6adaba91b518b971cc7be42149dd0.tar.bz2
Fix conditionmaster
-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;