From: VMware, Inc <> Date: Mon, 21 May 2012 22:28:08 +0000 (-0700) Subject: char is unsigned on ARM - change some vars to 'signed char' or 'int' X-Git-Tag: 2012.05.21-724730~8 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1abb20bd213976a1fa534e5d1521016a69848749;p=thirdparty%2Fopen-vm-tools.git char is unsigned on ARM - change some vars to 'signed char' or 'int' 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 --- diff --git a/open-vm-tools/lib/misc/base64.c b/open-vm-tools/lib/misc/base64.c index 0504cb3ad..81c4aa8dd 100644 --- a/open-vm-tools/lib/misc/base64.c +++ b/open-vm-tools/lib/misc/base64.c @@ -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 */