aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-11-03 23:35:07 +0100
committerMattias Andrée <maandree@operamail.com>2014-11-03 23:35:07 +0100
commit4ebcf154ea7247360565fa84aef42e1827b2063f (patch)
tree605a2309202384748cebf0c9a058b56d55df22b6 /src
parentfix a warning (diff)
downloadautopasswd-4ebcf154ea7247360565fa84aef42e1827b2063f.tar.gz
autopasswd-4ebcf154ea7247360565fa84aef42e1827b2063f.tar.bz2
autopasswd-4ebcf154ea7247360565fa84aef42e1827b2063f.tar.xz
derp1.1
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src')
-rw-r--r--src/autopasswd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/autopasswd.c b/src/autopasswd.c
index 49836df..d954024 100644
--- a/src/autopasswd.c
+++ b/src/autopasswd.c
@@ -362,7 +362,7 @@ int main(int argc, char** argv)
return 1;
}
}
- if ((bitrate__ & capacity__ & output__) == 0) /* state_size? */
+ if ((bitrate__ | capacity__ | output__) == 0) /* state_size? */
{
keccak_state_size = state_size__ ? keccak_state_size : keccak_state_size_;
keccak_output = (((keccak_state_size << 5) / 100 + 7) >> 3) << 3;
@@ -370,7 +370,7 @@ int main(int argc, char** argv)
keccak_capacity = keccak_state_size - keccak_bitrate;
keccak_output = keccak_output < 8 ? 8 : keccak_output;
}
- else if ((bitrate__ & capacity__) == 0) /* !output state_size? */
+ else if ((bitrate__ | capacity__) == 0) /* !output state_size? */
{
keccak_bitrate = keccak_bitrate_;
keccak_capacity = keccak_capacity_;