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:
Carsten Haitzler 2011-06-04 03:31:29 +00:00
parent 74ead7c758
commit 22e4f86c96
1 changed files with 1 additions and 1 deletions

View File

@ -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);