From 341019f372ce7f3110b2d626efcd34b0e0db5a2a Mon Sep 17 00:00:00 2001 From: David Cloutier <16943622+dwc035@users.noreply.github.com> Date: Wed, 22 Apr 2026 16:02:12 -0400 Subject: [PATCH] Change kInverse array type from char to signed char fix build error in ARM compile. CHAR is unsigned, but is initialized to -1. (x86-x64 CHAR is signed) --- webcc/base64.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webcc/base64.cc b/webcc/base64.cc index 17cb827..5f7b8c4 100644 --- a/webcc/base64.cc +++ b/webcc/base64.cc @@ -54,7 +54,7 @@ static const char kAlphabet[] = "0123456789+/"; // kInverse['z'] -> 51 which is the index of 'z' in kAlphabet. -static const char kInverse[] = { +static const signed char kInverse[] = { -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, // 0-15 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, // 16-31 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 62, -1, -1, -1, 63, // 32-47