changeset 29:35bc1f2e3f14 default tip

minor fix
author Yoshiki Yazawa <yaz@honeyplanet.jp>
date Sat, 06 Mar 2010 23:55:24 +0900
parents a7ccf412ba02
children
files Wnn/jutil/atod.c
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/Wnn/jutil/atod.c	Sat Mar 06 23:24:53 2010 +0900
+++ b/Wnn/jutil/atod.c	Sat Mar 06 23:55:24 2010 +0900
@@ -480,7 +480,8 @@
 {
   if (which_dict == WNN_UD_DICT)
     {
-      fprintf (stderr, " tnum = %d\n ind2= %d\n kanji = %d\n", tnum, (char *) uhopter - (char *) hostart, kanjicount);
+      fprintf (stderr, " tnum = %d\n ind2= %d\n kanji = %d\n",
+               tnum, (int)((char *) uhopter - (char *) hostart), kanjicount);
       jt.maxtable = tnum;
       jt.maxhontai = (char *) uhopter - (char *) hostart;
       jt.maxri2 = jt.maxri1[D_YOMI] = jt.maxri1[D_KANJI] = 0;
@@ -508,7 +509,8 @@
     }
   else
     {
-      fprintf (stderr, "node_count = %d  ind= %d\n kanji = %d\n", node_count, (char *) hopter - (char *) hostart, kanjicount);
+      fprintf (stderr, "node_count = %d  ind= %d\n kanji = %d\n",
+               node_count, (int)((char *) hopter - (char *) hostart), kanjicount);
       jt.maxtable = 0;
       jt.maxhontai = (char *) hopter - (char *) hostart;
       jt.maxri2 = jt.maxri1[D_YOMI] = jt.maxri1[D_KANJI] = 0;