From: Carsten H. (R. - E. G. <no-...@en...> - 2013-04-30 14:11:14
|
raster pushed a commit to branch master. commit ab0fdf5916757d9f30c606ef464f10852d7fa42d Author: Carsten Haitzler (Rasterman) <ra...@ra...> Date: Tue Apr 30 23:10:24 2013 +0900 it is possible with wchart_t to have it signed.. so unicode can be < 0... dont crash. --- src/lib/evas/common/language/evas_language_utils.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/lib/evas/common/language/evas_language_utils.c b/src/lib/evas/common/language/evas_language_utils.c index a7b8ef0..23dfb53 100644 --- a/src/lib/evas/common/language/evas_language_utils.c +++ b/src/lib/evas/common/language/evas_language_utils.c @@ -1,3 +1,6 @@ + + + /** * @internal * @addtogroup Evas_Utils @@ -59,10 +62,10 @@ _evas_common_language_char_script_search(Eina_Unicode unicode) Evas_Script_Type evas_common_language_char_script_get(Eina_Unicode unicode) { + if (unicode < 0) return EVAS_SCRIPT_COMMON; if (unicode < EVAS_SCRIPT_DIRECT_TABLE_LIMIT) return _evas_script_fast_table[unicode]; - else - return _evas_common_language_char_script_search(unicode); + return _evas_common_language_char_script_search(unicode); } int -- |