From 6148c6944469d629a94a1695eb91989030762ffc Mon Sep 17 00:00:00 2001 From: Zhicheng Wei Date: Sat, 16 Feb 2019 17:19:45 +0800 Subject: [PATCH] fix gcc warning, thanks Paul Smith @madscientist --- base64.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base64.c b/base64.c index 8e5efb2..2b5c236 100644 --- a/base64.c +++ b/base64.c @@ -135,7 +135,7 @@ base64_decode(const char *in, unsigned int inlen, unsigned char *out) return 0; } - c = base64de[in[i]]; + c = base64de[(unsigned char)in[i]]; if (c == 255) { return 0; }