aboutsummaryrefslogtreecommitdiffstats
path: root/common.c
diff options
context:
space:
mode:
Diffstat (limited to 'common.c')
-rw-r--r--common.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common.c b/common.c
index 45a764b..82ad938 100644
--- a/common.c
+++ b/common.c
@@ -239,7 +239,7 @@ parse_salt_or_pepper(uint_least8_t *out, const char *s, size_t required_length,
goto not_hexadecimal;
out[i] = (uint_least8_t)((((s[0] & 15) + (s[0] > '9' ? 9 : 0)) << 4) |
- (s[1] & 15) + (s[1] > '9' ? 9 : 0));
+ ((s[1] & 15) + (s[1] > '9' ? 9 : 0)));
}
if (*s)
@@ -291,7 +291,7 @@ parse_key(uint_least8_t *key, const char *s, size_t maximum_length)
goto not_hexadecimal;
key[i] = (uint_least8_t)((((s[0] & 15) + (s[0] > '9' ? 9 : 0)) << 4) |
- (s[1] & 15) + (s[1] > '9' ? 9 : 0));
+ ((s[1] & 15) + (s[1] > '9' ? 9 : 0)));
}
if (*s)