Index: libpyzy/src/Types.h
===================================================================
--- libpyzy.orig/src/Types.h	2013-02-07 21:52:56.226775639 +0800
+++ libpyzy/src/Types.h	2013-09-27 16:25:43.624656103 +0800
@@ -26,65 +26,65 @@
 
 namespace PyZy {
 
-#define PINYIN_ID_VOID  (-1)
-#define PINYIN_ID_ZERO  (0)
-#define PINYIN_ID_B     (1)
-#define PINYIN_ID_C     (2)
-#define PINYIN_ID_CH    (3)
-#define PINYIN_ID_D     (4)
-#define PINYIN_ID_F     (5)
-#define PINYIN_ID_G     (6)
-#define PINYIN_ID_H     (7)
-#define PINYIN_ID_J     (8)
-#define PINYIN_ID_K     (9)
-#define PINYIN_ID_L     (10)
-#define PINYIN_ID_M     (11)
-#define PINYIN_ID_N     (12)
-#define PINYIN_ID_P     (13)
-#define PINYIN_ID_Q     (14)
-#define PINYIN_ID_R     (15)
-#define PINYIN_ID_S     (16)
-#define PINYIN_ID_SH    (17)
-#define PINYIN_ID_T     (18)
-#define PINYIN_ID_W     (19)
-#define PINYIN_ID_X     (20)
-#define PINYIN_ID_Y     (21)
-#define PINYIN_ID_Z     (22)
-#define PINYIN_ID_ZH    (23)
-#define PINYIN_ID_A     (24)
-#define PINYIN_ID_AI    (25)
-#define PINYIN_ID_AN    (26)
-#define PINYIN_ID_ANG   (27)
-#define PINYIN_ID_AO    (28)
-#define PINYIN_ID_E     (29)
-#define PINYIN_ID_EI    (30)
-#define PINYIN_ID_EN    (31)
-#define PINYIN_ID_ENG   (32)
-#define PINYIN_ID_ER    (33)
-#define PINYIN_ID_I     (34)
-#define PINYIN_ID_IA    (35)
-#define PINYIN_ID_IAN   (36)
-#define PINYIN_ID_IANG  (37)
-#define PINYIN_ID_IAO   (38)
-#define PINYIN_ID_IE    (39)
-#define PINYIN_ID_IN    (40)
-#define PINYIN_ID_ING   (41)
-#define PINYIN_ID_IONG  (42)
-#define PINYIN_ID_IU    (43)
-#define PINYIN_ID_O     (44)
-#define PINYIN_ID_ONG   (45)
-#define PINYIN_ID_OU    (46)
-#define PINYIN_ID_U     (47)
-#define PINYIN_ID_UA    (48)
-#define PINYIN_ID_UAI   (49)
-#define PINYIN_ID_UAN   (50)
-#define PINYIN_ID_UANG  (51)
-#define PINYIN_ID_UE    (52)
+#define PINYIN_ID_VOID  ((char)-1)
+#define PINYIN_ID_ZERO  ((char)0)
+#define PINYIN_ID_B     ((char)1)
+#define PINYIN_ID_C     ((char)2)
+#define PINYIN_ID_CH    ((char)3)
+#define PINYIN_ID_D     ((char)4)
+#define PINYIN_ID_F     ((char)5)
+#define PINYIN_ID_G     ((char)6)
+#define PINYIN_ID_H     ((char)7)
+#define PINYIN_ID_J     ((char)8)
+#define PINYIN_ID_K     ((char)9)
+#define PINYIN_ID_L     ((char)10)
+#define PINYIN_ID_M     ((char)11)
+#define PINYIN_ID_N     ((char)12)
+#define PINYIN_ID_P     ((char)13)
+#define PINYIN_ID_Q     ((char)14)
+#define PINYIN_ID_R     ((char)15)
+#define PINYIN_ID_S     ((char)16)
+#define PINYIN_ID_SH    ((char)17)
+#define PINYIN_ID_T     ((char)18)
+#define PINYIN_ID_W     ((char)19)
+#define PINYIN_ID_X     ((char)20)
+#define PINYIN_ID_Y     ((char)21)
+#define PINYIN_ID_Z     ((char)22)
+#define PINYIN_ID_ZH    ((char)23)
+#define PINYIN_ID_A     ((char)24)
+#define PINYIN_ID_AI    ((char)25)
+#define PINYIN_ID_AN    ((char)26)
+#define PINYIN_ID_ANG   ((char)27)
+#define PINYIN_ID_AO    ((char)28)
+#define PINYIN_ID_E     ((char)29)
+#define PINYIN_ID_EI    ((char)30)
+#define PINYIN_ID_EN    ((char)31)
+#define PINYIN_ID_ENG   ((char)32)
+#define PINYIN_ID_ER    ((char)33)
+#define PINYIN_ID_I     ((char)34)
+#define PINYIN_ID_IA    ((char)35)
+#define PINYIN_ID_IAN   ((char)36)
+#define PINYIN_ID_IANG  ((char)37)
+#define PINYIN_ID_IAO   ((char)38)
+#define PINYIN_ID_IE    ((char)39)
+#define PINYIN_ID_IN    ((char)40)
+#define PINYIN_ID_ING   ((char)41)
+#define PINYIN_ID_IONG  ((char)42)
+#define PINYIN_ID_IU    ((char)43)
+#define PINYIN_ID_O     ((char)44)
+#define PINYIN_ID_ONG   ((char)45)
+#define PINYIN_ID_OU    ((char)46)
+#define PINYIN_ID_U     ((char)47)
+#define PINYIN_ID_UA    ((char)48)
+#define PINYIN_ID_UAI   ((char)49)
+#define PINYIN_ID_UAN   ((char)50)
+#define PINYIN_ID_UANG  ((char)51)
+#define PINYIN_ID_UE    ((char)52)
 #define PINYIN_ID_VE    PINYIN_ID_UE
-#define PINYIN_ID_UI    (53)
-#define PINYIN_ID_UN    (54)
-#define PINYIN_ID_UO    (55)
-#define PINYIN_ID_V     (56)
+#define PINYIN_ID_UI    ((char)53)
+#define PINYIN_ID_UN    ((char)54)
+#define PINYIN_ID_UO    ((char)55)
+#define PINYIN_ID_V     ((char)56)
 #define PINYIN_ID_NG    PINYIN_ID_VOID
 
 struct Pinyin {
