diff options
author | Tor Lillqvist <tml@iki.fi> | 2012-03-01 23:06:58 +0200 |
---|---|---|
committer | Tor Lillqvist <tml@iki.fi> | 2012-03-01 23:06:58 +0200 |
commit | 2b26a54ecb589a67ee199759936a1adce148671a (patch) | |
tree | 8304fe1229084f6e3a8a3e417762fabae973ffff /svtools/source | |
parent | 68a571aeb5ea01fe2a10583c45efc109e8ae9968 (diff) |
Sillyish clang WaE: array subscript is of type 'char'
Diffstat (limited to 'svtools/source')
-rw-r--r-- | svtools/source/filter/ixbm/xbmread.cxx | 60 |
1 files changed, 30 insertions, 30 deletions
diff --git a/svtools/source/filter/ixbm/xbmread.cxx b/svtools/source/filter/ixbm/xbmread.cxx index e6fc446816c1..6a8c2ee9db20 100644 --- a/svtools/source/filter/ixbm/xbmread.cxx +++ b/svtools/source/filter/ixbm/xbmread.cxx @@ -67,36 +67,36 @@ void XBMReader::InitTable() { memset( pHexTable, 0, sizeof( short ) ); - pHexTable['0'] = 0; - pHexTable['1'] = 1; - pHexTable['2'] = 2; - pHexTable['3'] = 3; - pHexTable['4'] = 4; - pHexTable['5'] = 5; - pHexTable['6'] = 6; - pHexTable['7'] = 7; - pHexTable['8'] = 8; - pHexTable['9'] = 9; - pHexTable['A'] = 10; - pHexTable['B'] = 11; - pHexTable['C'] = 12; - pHexTable['D'] = 13; - pHexTable['E'] = 14; - pHexTable['F'] = 15; - pHexTable['X'] = 0; - pHexTable['a'] = 10; - pHexTable['b'] = 11; - pHexTable['c'] = 12; - pHexTable['d'] = 13; - pHexTable['e'] = 14; - pHexTable['f'] = 15; - pHexTable['x'] = 0; - pHexTable[' '] = -1; - pHexTable[','] = -1; - pHexTable['}'] = -1; - pHexTable['\n'] = -1; - pHexTable['\t'] = -1; - pHexTable['\0'] = -1; + pHexTable[(int)'0'] = 0; + pHexTable[(int)'1'] = 1; + pHexTable[(int)'2'] = 2; + pHexTable[(int)'3'] = 3; + pHexTable[(int)'4'] = 4; + pHexTable[(int)'5'] = 5; + pHexTable[(int)'6'] = 6; + pHexTable[(int)'7'] = 7; + pHexTable[(int)'8'] = 8; + pHexTable[(int)'9'] = 9; + pHexTable[(int)'A'] = 10; + pHexTable[(int)'B'] = 11; + pHexTable[(int)'C'] = 12; + pHexTable[(int)'D'] = 13; + pHexTable[(int)'E'] = 14; + pHexTable[(int)'F'] = 15; + pHexTable[(int)'X'] = 0; + pHexTable[(int)'a'] = 10; + pHexTable[(int)'b'] = 11; + pHexTable[(int)'c'] = 12; + pHexTable[(int)'d'] = 13; + pHexTable[(int)'e'] = 14; + pHexTable[(int)'f'] = 15; + pHexTable[(int)'x'] = 0; + pHexTable[(int)' '] = -1; + pHexTable[(int)','] = -1; + pHexTable[(int)'}'] = -1; + pHexTable[(int)'\n'] = -1; + pHexTable[(int)'\t'] = -1; + pHexTable[(int)'\0'] = -1; } // ------------------------------------------------------------------------ |