summaryrefslogtreecommitdiff
path: root/src/lib/evas/common/language
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2013-04-30 23:10:24 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2013-04-30 23:11:01 +0900
commitab0fdf5916757d9f30c606ef464f10852d7fa42d (patch)
tree0bd1aebd3915b84bfb09f2ade1e236363f4c9a26 /src/lib/evas/common/language
parent809144780e79387b0dfa55abd117fa0bb8d0a627 (diff)
it is possible with wchart_t to have it signed.. so unicode can be <
0... dont crash.
Diffstat (limited to 'src/lib/evas/common/language')
-rw-r--r--src/lib/evas/common/language/evas_language_utils.c7
1 files 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 a7b8ef06f6..23dfb53cbd 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 @@
1
2
3
1/** 4/**
2 * @internal 5 * @internal
3 * @addtogroup Evas_Utils 6 * @addtogroup Evas_Utils
@@ -59,10 +62,10 @@ _evas_common_language_char_script_search(Eina_Unicode unicode)
59Evas_Script_Type 62Evas_Script_Type
60evas_common_language_char_script_get(Eina_Unicode unicode) 63evas_common_language_char_script_get(Eina_Unicode unicode)
61{ 64{
65 if (unicode < 0) return EVAS_SCRIPT_COMMON;
62 if (unicode < EVAS_SCRIPT_DIRECT_TABLE_LIMIT) 66 if (unicode < EVAS_SCRIPT_DIRECT_TABLE_LIMIT)
63 return _evas_script_fast_table[unicode]; 67 return _evas_script_fast_table[unicode];
64 else 68 return _evas_common_language_char_script_search(unicode);
65 return _evas_common_language_char_script_search(unicode);
66} 69}
67 70
68int 71int