comparison 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
comparison
equal deleted inserted replaced
2:b605a0e60f5b 3:ed4bb01eb317
433 { 433 {
434 UCHAR *kptr; 434 UCHAR *kptr;
435 register struct JT *jtl; 435 register struct JT *jtl;
436 436
437 jtl = (struct JT *) (files[dic_table[jentptr->jishono].body].area); 437 jtl = (struct JT *) (files[dic_table[jentptr->jishono].body].area);
438 kptr = (long)jtl->kanji + jentptr->kanji1; // xxx which one is the offset?? --yaz 438 kptr = (UCHAR *)(jtl->kanji + jentptr->kanji1); // xxx which one is the offset?? --yaz
439 if (jentptr->which == D_YOMI) 439 if (jentptr->which == D_YOMI)
440 { 440 {
441 Get_knj1 (kptr, oy, oyl, jentptr->kanji2 + u, kouho, NULL, NULL); 441 Get_knj1 (kptr, oy, oyl, jentptr->kanji2 + u, kouho, NULL, NULL);
442 } 442 }
443 else 443 else
472 { 472 {
473 register UCHAR *kptr; 473 register UCHAR *kptr;
474 struct JT *jtl; 474 struct JT *jtl;
475 475
476 jtl = (struct JT *) (files[dic_table[jentptr->jishono].body].area); 476 jtl = (struct JT *) (files[dic_table[jentptr->jishono].body].area);
477 kptr = (long)jtl->kanji + jentptr->kanji1; 477 kptr = (UCHAR *)(jtl->kanji + jentptr->kanji1); // xxx may result in failure --yaz
478 Get_knj2 (kptr, jentptr->kanji2 + u, kouho, NULL, com); 478 Get_knj2 (kptr, jentptr->kanji2 + u, kouho, NULL, com);
479 } 479 }