From 25745cf72056efc2250e8fdd99d6f30384472694 Mon Sep 17 00:00:00 2001 From: "Roy.Li" Date: Wed, 18 Jul 2012 10:15:56 +0800 Subject: 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 Signed-off-by: Saul Wold --- .../change-char-type-to-signed-char-in-macros.patch | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'meta/recipes-extended/slang') 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 --- src/slarith2.inc | 72 ++++++++++++++++++++++++------------------------- src/util/mkslarith2.sl | 2 - -- cgit v1.2.3