aboutsummaryrefslogtreecommitdiffstats
path: root/common.c
diff options
context:
space:
mode:
authorMattias Andrée <m@maandree.se>2026-02-23 14:20:43 +0100
committerMattias Andrée <m@maandree.se>2026-02-23 14:20:43 +0100
commite7bae9c3cd0d267ebac380e34ee1cd0c1e6cf740 (patch)
tree8c09b3ea8e4b0e9b518ca5c8bacaef492bc64282 /common.c
parentm fixes (diff)
downloadblakesum-e7bae9c3cd0d267ebac380e34ee1cd0c1e6cf740.tar.gz
blakesum-e7bae9c3cd0d267ebac380e34ee1cd0c1e6cf740.tar.bz2
blakesum-e7bae9c3cd0d267ebac380e34ee1cd0c1e6cf740.tar.xz
fix warningsHEAD1.0.1master
Signed-off-by: Mattias Andrée <m@maandree.se>
Diffstat (limited to '')
-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)