slang: add header to patch

Add description, Signed-off-by and Upstream-Status to
change-char-type-to-signed-char-in-macros.patch

(From OE-Core rev: 25745cf72056efc2250e8fdd99d6f30384472694)

Signed-off-by: Roy.Li <rongqing.li@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Roy.Li 2012-07-18 10:15:56 +08:00 committed by Richard Purdie
parent 55faaa04cd
commit ecd5308c90
1 changed files with 16 additions and 0 deletions

View File

@ -1,3 +1,19 @@
slang: change char type to signed char in macros
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
Upstream-Status: Submitted
Signed-off-by: Roy.Li <rongqing.li@windriver.com>
---
src/slarith2.inc | 72 ++++++++++++++++++++++++-------------------------
src/util/mkslarith2.sl | 2 -