Mercurial > freewnn
diff Wnn/jserver/do_henkan1.c @ 3:ed4bb01eb317
- suppress warnings.
- partially fixed comparison between pointer and 0.
author | Yoshiki Yazawa <yaz@cc.rim.or.jp> |
---|---|
date | Thu, 13 Dec 2007 19:53:14 +0900 |
parents | 790205f476c0 |
children | 6bfa7ea3b75b |
line wrap: on
line diff
--- a/Wnn/jserver/do_henkan1.c Thu Dec 13 17:42:01 2007 +0900 +++ b/Wnn/jserver/do_henkan1.c Thu Dec 13 19:53:14 2007 +0900 @@ -435,7 +435,7 @@ register struct JT *jtl; jtl = (struct JT *) (files[dic_table[jentptr->jishono].body].area); - kptr = (long)jtl->kanji + jentptr->kanji1; // xxx which one is the offset?? --yaz + kptr = (UCHAR *)(jtl->kanji + jentptr->kanji1); // xxx which one is the offset?? --yaz if (jentptr->which == D_YOMI) { Get_knj1 (kptr, oy, oyl, jentptr->kanji2 + u, kouho, NULL, NULL); @@ -474,6 +474,6 @@ struct JT *jtl; jtl = (struct JT *) (files[dic_table[jentptr->jishono].body].area); - kptr = (long)jtl->kanji + jentptr->kanji1; + kptr = (UCHAR *)(jtl->kanji + jentptr->kanji1); // xxx may result in failure --yaz Get_knj2 (kptr, jentptr->kanji2 + u, kouho, NULL, com); }