From 069384da5e82b9e4274a967589bdbd58bff44507 Mon Sep 17 00:00:00 2001 From: Ian Coolidge <icoolidge@google.com> Date: Mon, 11 Jan 2016 13:41:02 -0800 Subject: [PATCH] base64: clarify signedness in negative initialization Some platforms do not use signed char (arm) --- src/core/security/base64.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core/security/base64.c b/src/core/security/base64.c index e68359602e..0c3645788e 100644 --- a/src/core/security/base64.c +++ b/src/core/security/base64.c @@ -33,6 +33,7 @@ #include "src/core/security/base64.h" +#include <stdint.h> #include <string.h> #include <grpc/support/alloc.h> @@ -41,7 +42,7 @@ /* --- Constants. --- */ -static const char base64_bytes[] = { +static const int8_t base64_bytes[] = { -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -- GitLab