summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoy.Li <rongqing.li@windriver.com>2012-07-18 10:15:56 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-07-18 14:28:44 +0100
commit25745cf72056efc2250e8fdd99d6f30384472694 (patch)
tree51e1c4d22eba181c9a964def7642c095b0b98f12
parent2a686494119ced9c1eca45b229aa8746dc8a143f (diff)
downloadopenembedded-core-25745cf72056efc2250e8fdd99d6f30384472694.tar.gz
openembedded-core-25745cf72056efc2250e8fdd99d6f30384472694.tar.bz2
openembedded-core-25745cf72056efc2250e8fdd99d6f30384472694.zip
slang: add header to patch
Add description, Signed-off-by and Upstream-Status to change-char-type-to-signed-char-in-macros.patch Signed-off-by: Roy.Li <rongqing.li@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
-rw-r--r--meta/recipes-extended/slang/slang/change-char-type-to-signed-char-in-macros.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/meta/recipes-extended/slang/slang/change-char-type-to-signed-char-in-macros.patch b/meta/recipes-extended/slang/slang/change-char-type-to-signed-char-in-macros.patch
index 18dea139ea..2ea1ffda57 100644
--- a/meta/recipes-extended/slang/slang/change-char-type-to-signed-char-in-macros.patch
+++ b/meta/recipes-extended/slang/slang/change-char-type-to-signed-char-in-macros.patch
@@ -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 -