libroot: Use 'int' not 'char' in crypt code.

It seems 'char' is unsigned on ARM, so GCC errors on the -1s in here.
This commit is contained in:
Augustin Cavalier 2018-07-03 19:08:33 -04:00
parent b806d76f78
commit 382d022473

View File

@ -28,7 +28,7 @@
#define CRYPT_OUTPUT_BYTES (6 + 64 + 1 + 64 + 1)
static const char* kHexAlphabet = "0123456789abcdef";
static const char kHexLookup[] = {
static const int kHexLookup[] = {
-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, -1, -1, -1, -1, -1, 0, 1, 2, 3,