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:
@@ -28,7 +28,7 @@
|
|||||||
#define CRYPT_OUTPUT_BYTES (6 + 64 + 1 + 64 + 1)
|
#define CRYPT_OUTPUT_BYTES (6 + 64 + 1 + 64 + 1)
|
||||||
|
|
||||||
static const char* kHexAlphabet = "0123456789abcdef";
|
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, -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,
|
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0, 1, 2, 3,
|
||||||
|
|||||||
Reference in New Issue
Block a user