From 502b3c9ed3128db94ff1f0df13d2e05793c6999b Mon Sep 17 00:00:00 2001 From: Cristian Herghelegiu <56673580+herrcristi@users.noreply.github.com> Date: Sun, 22 Dec 2024 01:53:40 +0200 Subject: [PATCH] Resolve codeql (#20) --- include/impl/base64_impl.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/impl/base64_impl.h b/include/impl/base64_impl.h index 4e971c4..df45aeb 100644 --- a/include/impl/base64_impl.h +++ b/include/impl/base64_impl.h @@ -20,7 +20,7 @@ namespace small::base64impl { // return 0; // clang-format off - static constexpr std::array__base64 = + static char __base64[] = { 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', @@ -44,7 +44,7 @@ namespace small::base64impl { // return -1; // clang-format off - static constexpr std::array __index_of { + static int __index_of[256] = { -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/*#*/, -1/*$*/, -1/*%*/, -1/*&*/, -1/*'*/, -1/*(*/, -1/*)*/, -1/***/, 62/*+*/, -1/*,*/, -1/*-*/, -1/*.*/, 63/*/*/,