summaryrefslogtreecommitdiff
path: root/src/lib/evas/common/language
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2013-05-16 09:56:17 +0100
committerTom Hacohen <tom@stosb.com>2013-05-16 09:56:17 +0100
commit311dab3feea28e1ac0a2f9f845081d2ac86aea6b (patch)
tree15c3a675a37c02cbd4b43637bd55a34d7a6d8f2a /src/lib/evas/common/language
parent1c67205114eea7c94328a751ff8691b93458fe9e (diff)
Evas language: Handle signed wchar_t in a nicer way.
Diffstat (limited to 'src/lib/evas/common/language')
-rw-r--r--src/lib/evas/common/language/evas_language_utils.c4
1 files changed, 2 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 23dfb53cbd..b53ba5ed6a 100644
--- a/src/lib/evas/common/language/evas_language_utils.c
+++ b/src/lib/evas/common/language/evas_language_utils.c
@@ -60,9 +60,9 @@ _evas_common_language_char_script_search(Eina_Unicode unicode)
60} 60}
61 61
62Evas_Script_Type 62Evas_Script_Type
63evas_common_language_char_script_get(Eina_Unicode unicode) 63evas_common_language_char_script_get(Eina_Unicode _unicode)
64{ 64{
65 if (unicode < 0) return EVAS_SCRIPT_COMMON; 65 uint32_t unicode = _unicode;
66 if (unicode < EVAS_SCRIPT_DIRECT_TABLE_LIMIT) 66 if (unicode < EVAS_SCRIPT_DIRECT_TABLE_LIMIT)
67 return _evas_script_fast_table[unicode]; 67 return _evas_script_fast_table[unicode];
68 return _evas_common_language_char_script_search(unicode); 68 return _evas_common_language_char_script_search(unicode);