aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
- }
}
}