From 2c5b81a377f1003964a88e51d1732930c250bd3c Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Fri, 11 Aug 2023 16:33:37 +0200 Subject: Make things symmetrical --- b32.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'b32.c') 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; -- cgit v1.2.3