summaryrefslogtreecommitdiff
path: root/base64-decode.c
diff options
context:
space:
mode:
Diffstat (limited to 'base64-decode.c')
-rw-r--r--base64-decode.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/base64-decode.c b/base64-decode.c
index 337ea395..b993117a 100644
--- a/base64-decode.c
+++ b/base64-decode.c
@@ -73,9 +73,9 @@ base64_decode_init(struct base64_decode_ctx *ctx)
int
base64_decode_single(struct base64_decode_ctx *ctx,
uint8_t *dst,
- uint8_t src)
+ char src)
{
- int data = ctx->table[src];
+ int data = ctx->table[(uint8_t) src];
switch(data)
{
@@ -122,7 +122,7 @@ base64_decode_update(struct base64_decode_ctx *ctx,
size_t *dst_length,
uint8_t *dst,
size_t src_length,
- const uint8_t *src)
+ const char *src)
{
size_t done;
size_t i;