raster pushed a commit to branch master.

commit ab0fdf5916757d9f30c606ef464f10852d7fa42d
Author: Carsten Haitzler (Rasterman) <[email protected]>
Date:   Tue Apr 30 23:10:24 2013 +0900

    it is possible with wchart_t to have it signed.. so unicode can be <
    0... dont crash.
---
 src/lib/evas/common/language/evas_language_utils.c | 7 +++++--
 1 file changed, 5 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 a7b8ef0..23dfb53 100644
--- a/src/lib/evas/common/language/evas_language_utils.c
+++ b/src/lib/evas/common/language/evas_language_utils.c
@@ -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

-- 

------------------------------------------------------------------------------
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with <2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1

Reply via email to