diff options
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-extended/slang/slang/change-char-type-to-signed-char-in-macros.patch | 16 |
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 @@ | |||
1 | slang: change char type to signed char in macros | ||
2 | |||
3 | C language has 3 distinct char types: | ||
4 | char | ||
5 | unsigned char | ||
6 | signed char | ||
7 | A char has the same range of values as signed char on X86, | ||
8 | but same as unsigned char on ARM which made Slang's typecast() | ||
9 | and array_sort() unable to work for char value on ARM, since | ||
10 | Slang is assuming "char" as "signed char". | ||
11 | |||
12 | Now we change "char" as "signed char" explicitly in | ||
13 | util/mkslarith2.sl, and use it to regenerate src/slarith2.inc | ||
14 | |||
15 | Upstream-Status: Submitted | ||
16 | Signed-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 - |