Use smaller type for decode tables.
This saves a bit of space in the binary and should not have a noticeable impact on performance.
@@ -99,7 +99,7 @@ encodeToStrSizeBase64(size_t sourceSize)
}
/**********************************************************************************************************************************/
-static const int decodeBase64Lookup[256] =
+static const int8_t decodeBase64Lookup[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,
@@ -358,7 +358,7 @@ encodeToStrSizeHex(const size_t sourceSize)
}
/**********************************************************************************************************************************/
-static const int decodeHexLookup[256] =
+static const int8_t decodeHexLookup[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,
