comparison Wnn/jserver/do_henkan1.c @ 27:6bfa7ea3b75b

- resolved conflict between pointer and int - more warning suppression
author Yoshiki Yazawa <yaz@honeyplanet.jp>
date Sat, 06 Mar 2010 18:29:27 +0900
parents ed4bb01eb317
children
comparison
equal deleted inserted replaced
26:6dcfbd28e807 27:6bfa7ea3b75b
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 = (UCHAR *)(jtl->kanji + jentptr->kanji1); // xxx which one is the offset?? --yaz 438 kptr = jtl->kanji + jentptr->kanji1;
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 = (UCHAR *)(jtl->kanji + jentptr->kanji1); // xxx may result in failure --yaz 477 kptr = jtl->kanji + jentptr->kanji1;
478 Get_knj2 (kptr, jentptr->kanji2 + u, kouho, NULL, com); 478 Get_knj2 (kptr, jentptr->kanji2 + u, kouho, NULL, com);
479 } 479 }