aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2023-08-11 16:33:28 +0200
committerThomas Voss <mail@thomasvoss.com> 2023-08-11 16:33:28 +0200
commit65a717130da9defdbbb57928744381f3a197112b (patch)
tree00cca228ba1c430b5635693e2f31eaaedb5eff41
parent8267c5776673dcdb95fe65621b38b535919b6899 (diff)
Abide by my own coding standards
-rw-r--r--b32.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/b32.c b/b32.c
index a116769..b3c05d4 100644
--- a/b32.c
+++ b/b32.c
@@ -38,11 +38,10 @@ b32toa(char *dst, const char *src, size_t len)
c = src[i + j];
vs[j] = ctov[(uint8_t)c];
if (vs[j] == 255) {
- if (c == '=' && j >= 8 - pad) {
+ if (c == '=' && j >= 8 - pad)
vs[j] = 0;
- } else {
+ else
return false;
- }
}
}