]> code.ossystems Code Review - openembedded-core.git/commitdiff
slang: add header to patch
authorRoy.Li <rongqing.li@windriver.com>
Wed, 18 Jul 2012 02:15:56 +0000 (10:15 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 18 Jul 2012 13:28:44 +0000 (14:28 +0100)
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>
meta/recipes-extended/slang/slang/change-char-type-to-signed-char-in-macros.patch

index 18dea139eaa3312203779149858c798ed177dac1..2ea1ffda57abb20d025cd018bab117c306e6267f 100644 (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 -