forked from enlightenment/efl
it is possible with wchart_t to have it signed.. so unicode can be <
0... dont crash.
This commit is contained in:
parent
809144780e
commit
ab0fdf5916
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue