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
|
* @internal
|
||||||
* @addtogroup Evas_Utils
|
* @addtogroup Evas_Utils
|
||||||
|
@ -59,10 +62,10 @@ _evas_common_language_char_script_search(Eina_Unicode unicode)
|
||||||
Evas_Script_Type
|
Evas_Script_Type
|
||||||
evas_common_language_char_script_get(Eina_Unicode unicode)
|
evas_common_language_char_script_get(Eina_Unicode unicode)
|
||||||
{
|
{
|
||||||
|
if (unicode < 0) return EVAS_SCRIPT_COMMON;
|
||||||
if (unicode < EVAS_SCRIPT_DIRECT_TABLE_LIMIT)
|
if (unicode < EVAS_SCRIPT_DIRECT_TABLE_LIMIT)
|
||||||
return _evas_script_fast_table[unicode];
|
return _evas_script_fast_table[unicode];
|
||||||
else
|
return _evas_common_language_char_script_search(unicode);
|
||||||
return _evas_common_language_char_script_search(unicode);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
|
|
Loading…
Reference in New Issue