diff options
author | axtlos <axtlos@getcryst.al> | 2024-04-05 00:04:38 +0200 |
---|---|---|
committer | axtlos <axtlos@getcryst.al> | 2024-04-05 00:04:38 +0200 |
commit | 14ce1a6564b6adaba91b518b971cc7be42149dd0 (patch) | |
tree | a271ca095b2fe5ce4849b0a7f39e35884a5a2ebf | |
parent | 02d5273674d2da06b1808b6d6877ef65c9a936b6 (diff) | |
download | genkeymash-14ce1a6564b6adaba91b518b971cc7be42149dd0.tar.gz genkeymash-14ce1a6564b6adaba91b518b971cc7be42149dd0.tar.bz2 |
Fix conditionmaster
-rw-r--r-- | keymash.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |