aboutsummaryrefslogtreecommitdiffstats
path: root/src/base64.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2023-04-03 09:00:21 -0400
committerDavid Robillard <d@drobilla.net>2023-04-05 09:45:15 -0400
commit92f7c078250df898b24fce3af1ed6a9ae7d0c029 (patch)
treeb05d5310404a54363b6c85313b377bff0ecbd708 /src/base64.c
parent6afca7558bd9b074957aec421fd22868c5b6698e (diff)
downloadserd-92f7c078250df898b24fce3af1ed6a9ae7d0c029.tar.gz
serd-92f7c078250df898b24fce3af1ed6a9ae7d0c029.tar.bz2
serd-92f7c078250df898b24fce3af1ed6a9ae7d0c029.zip
Fix sign conversion warnings
Diffstat (limited to 'src/base64.c')
-rw-r--r--src/base64.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/base64.c b/src/base64.c
index 02ca828b..ce8fe74d 100644
--- a/src/base64.c
+++ b/src/base64.c
@@ -90,7 +90,7 @@ decode_chunk(const uint8_t in[4], uint8_t out[3])
out[0] = (uint8_t)(((unmap(in[0]) << 2)) | unmap(in[1]) >> 4);
out[1] = (uint8_t)(((unmap(in[1]) << 4) & 0xF0) | unmap(in[2]) >> 2);
out[2] = (uint8_t)(((unmap(in[2]) << 6) & 0xC0) | unmap(in[3]));
- return 1 + (in[2] != '=') + ((in[2] != '=') && (in[3] != '='));
+ return 1U + (in[2] != '=') + ((in[2] != '=') && (in[3] != '='));
}
void*