From a45aa73a4afa2b80876af7cf6eb145d798efb129 Mon Sep 17 00:00:00 2001 From: harry Date: Sat, 28 Jan 2023 08:04:05 -0500 Subject: [PATCH] Fix for int conversion compiler warning. --- src/utils/xstring.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/xstring.cpp b/src/utils/xstring.cpp index 0c6df8cd..f631662e 100644 --- a/src/utils/xstring.cpp +++ b/src/utils/xstring.cpp @@ -194,7 +194,7 @@ static const struct Base64Table data[62] = '+'; // 62 data[63] = '/'; // 63 // create ascii->value mapping (but due to overlap, write it to highbit region) - for(a=0; a<64; ++a) data[data[a]^0x80] = a; // + for(a=0; a<64; ++a) data[data[a]^0x80] = static_cast(a); // data[((unsigned char)'=') ^ 0x80] = 0; } unsigned char operator[] (size_t pos) const { return data[pos]; }