aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2023-08-11 16:33:37 +0200
committerThomas Voss <mail@thomasvoss.com> 2023-08-11 16:33:37 +0200
commit2c5b81a377f1003964a88e51d1732930c250bd3c (patch)
treed43cd4642758ef8617c069e15619de321243cb67
parent65a717130da9defdbbb57928744381f3a197112b (diff)
Make things symmetrical
-rw-r--r--b32.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/b32.c b/b32.c
index b3c05d4..1503bf5 100644
--- a/b32.c
+++ b/b32.c
@@ -49,7 +49,7 @@ b32toa(char *dst, const char *src, size_t len)
dst[i * 5 / 8 + 1] = (vs[1] << 6) | (vs[2] << 1) | (vs[3] >> 4);
dst[i * 5 / 8 + 2] = (vs[3] << 4) | (vs[4] >> 1);
dst[i * 5 / 8 + 3] = (vs[4] << 7) | (vs[5] << 2) | (vs[6] >> 3);
- dst[i * 5 / 8 + 4] = (vs[6] << 5) | vs[7];
+ dst[i * 5 / 8 + 4] = (vs[6] << 5) | (vs[7] >> 0);
}
return true;