summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
Diffstat (limited to 'meta')
-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 @@
1slang: change char type to signed char in macros
2
3C language has 3 distinct char types:
4 char
5 unsigned char
6 signed char
7A char has the same range of values as signed char on X86,
8but same as unsigned char on ARM which made Slang's typecast()
9and array_sort() unable to work for char value on ARM, since
10Slang is assuming "char" as "signed char".
11
12Now we change "char" as "signed char" explicitly in
13util/mkslarith2.sl, and use it to regenerate src/slarith2.inc
14
15Upstream-Status: Submitted
16Signed-off-by: Roy.Li <rongqing.li@windriver.com>
1--- 17---
2 src/slarith2.inc | 72 ++++++++++++++++++++++++------------------------- 18 src/slarith2.inc | 72 ++++++++++++++++++++++++-------------------------
3 src/util/mkslarith2.sl | 2 - 19 src/util/mkslarith2.sl | 2 -