From 382d022473c897734fed4ac99a647e0e02f51f5b Mon Sep 17 00:00:00 2001 From: Augustin Cavalier Date: Tue, 3 Jul 2018 19:08:33 -0400 Subject: [PATCH] libroot: Use 'int' not 'char' in crypt code. It seems 'char' is unsigned on ARM, so GCC errors on the -1s in here. --- src/system/libroot/posix/crypt/crypt.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/system/libroot/posix/crypt/crypt.cpp b/src/system/libroot/posix/crypt/crypt.cpp index bdd686b636..8725d21f56 100644 --- a/src/system/libroot/posix/crypt/crypt.cpp +++ b/src/system/libroot/posix/crypt/crypt.cpp @@ -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,