]> code.ossystems Code Review - openembedded-core.git/commit
slang: change char type to signed char in macros
authorRoy.Li <rongqing.li@windriver.com>
Tue, 10 Jul 2012 09:27:00 +0000 (17:27 +0800)
committerSaul Wold <sgw@linux.intel.com>
Mon, 16 Jul 2012 15:31:40 +0000 (08:31 -0700)
commit0a1d842e2db63265a6a6708b1101e1f52f223fc9
treee2506fc368272eaf61282cfd6496ae544abc32a2
parent6facee8443966b646cd1e72f14ae13e58a13f621
slang: change char type to signed char in macros

Fix [YOCTO 2726]

C language has 3 distinct char types:
         char
         unsigned char
         signed char
A char has the same range of values as signed char on X86,
but same as unsigned char on ARM which made Slang's typecast()
and array_sort() unable to work for char value on ARM, since
Slang is assuming "char" as "signed char".

Now we change "char" as "signed char" explicitly in
util/mkslarith2.sl, and use it to regenerate src/slarith2.inc

Signed-off-by: Roy.Li <rongqing.li@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
meta/recipes-extended/slang/slang/change-char-type-to-signed-char-in-macros.patch [new file with mode: 0644]
meta/recipes-extended/slang/slang_2.2.4.bb