]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
char is unsigned on ARM - change some vars to 'signed char' or 'int'
authorVMware, Inc <>
Mon, 21 May 2012 22:28:08 +0000 (15:28 -0700)
committerDmitry Torokhov <dtor@vmware.com>
Tue, 22 May 2012 18:57:14 +0000 (11:57 -0700)
Unfortunately GCC isn't very good at warning for this, so I've probably
missed some.  Also fix a couple of uses of asm("int 3").

Signed-off-by: Dmitry Torokhov <dtor@vmware.com>
open-vm-tools/lib/misc/base64.c

index 0504cb3ad3ce8b3db245268907549b56ee7741c7..81c4aa8dd6f9f447c0ce7ad8d4cc5cbb142a104f 100644 (file)
@@ -75,7 +75,7 @@ enum {
  *  }
  */
 
-static const char base64Reverse[256] = {
+static const signed char base64Reverse[256] = {
    EOM,     ILLEGAL, ILLEGAL, ILLEGAL, ILLEGAL, ILLEGAL, ILLEGAL, ILLEGAL,   /* 00-07 */
    ILLEGAL, WS,      WS,      WS,      WS,      WS,      ILLEGAL, ILLEGAL,   /* 08-0F */
    ILLEGAL, ILLEGAL, ILLEGAL, ILLEGAL, ILLEGAL, ILLEGAL, ILLEGAL, ILLEGAL,   /* 10-17 */