forked from enlightenment/efl
protext against <0 table lookups. yes eina_unicode can define
Eina_Unicode as wchart_t.. which is SIGNED.. this is the problem of not having a fixed typedef that is known to always be the same type with same underlying properties! SVN revision: 59947
This commit is contained in:
parent
74ead7c758
commit
22e4f86c96
|
@ -53,7 +53,7 @@ _evas_common_language_char_script_search(Eina_Unicode unicode)
|
|||
Evas_Script_Type
|
||||
evas_common_language_char_script_get(Eina_Unicode unicode)
|
||||
{
|
||||
if (unicode < EVAS_SCRIPT_DIRECT_TABLE_LIMIT)
|
||||
if ((unicode >= 0) && (unicode < EVAS_SCRIPT_DIRECT_TABLE_LIMIT))
|
||||
return _evas_script_fast_table[unicode];
|
||||
else
|
||||
return _evas_common_language_char_script_search(unicode);
|
||||
|
|
Loading…
Reference in New Issue