Mercurial > hg > xemacs-beta
changeset 4042:f9be867eb83e
[xemacs-hg @ 2007-06-29 08:00:58 by stephent]
Quiet gcc warnings on amd64 (1/2). <87wsxn18ri.fsf@uwakimon.sk.tsukuba.ac.jp>
author | stephent |
---|---|
date | Fri, 29 Jun 2007 08:01:08 +0000 |
parents | f90878e20efe |
children | b325de44db27 |
files | modules/ChangeLog modules/canna/canna_api.c |
diffstat | 2 files changed, 15 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/modules/ChangeLog Thu Jun 28 21:51:50 2007 +0000 +++ b/modules/ChangeLog Fri Jun 29 08:01:08 2007 +0000 @@ -1,3 +1,9 @@ +2007-06-23 Stephen J. Turnbull <stephen@xemacs.org> + + * canna/canna_api.c (Fcanna_set_bunsetsu): + (Fcanna_initialize): + Suppress warnings about loss of precision on amd64. + 2007-06-23 Stephen J. Turnbull <stephen@xemacs.org> * ldap/eldap.h: Declare that we use deprecated API.
--- a/modules/canna/canna_api.c Thu Jun 28 21:51:50 2007 +0000 +++ b/modules/canna/canna_api.c Fri Jun 29 08:01:08 2007 +0000 @@ -333,11 +333,12 @@ */ (num)) { - int kugiri; /* 文節区切りをするか? (display clause separator?) */ + /* This is actually a Boolean! */ + char *kugiri; /* 文節区切りをするか? (display clause separator?) */ - kugiri = NILP (num) ? 0 : 1; + kugiri = NILP (num) ? (char *) 0 : (char *) 1; - jrKanjiControl (0, KC_SETBUNSETSUKUGIRI, (char *) kugiri); + jrKanjiControl (0, KC_SETBUNSETSUKUGIRI, kugiri); return Qnil; } @@ -365,19 +366,19 @@ int res; char **p, **q; - int kugiri; /* 文節区切りをするか? (display clause separator?) */ + /* This is actually a Boolean! */ + char *kugiri; /* 文節区切りをするか? (display clause separator?) */ IRCP_context = -1; if (NILP (num)) { - kugiri = 1; + kugiri = (char *) 1; } else { CHECK_INT (num); - kugiri = XINT (num); - kugiri = (kugiri == 1) ? 1 : 0; + kugiri = (XINT (num) == 1) ? (char *) 1 : (char *) 0; } if (NILP (server)) @@ -444,7 +445,7 @@ #endif /* CANNA_MULE */ #endif /* KC_SETAPPNAME */ - jrKanjiControl (0, KC_SETBUNSETSUKUGIRI, (char *) kugiri); + jrKanjiControl (0, KC_SETBUNSETSUKUGIRI, kugiri); jrKanjiControl (0, KC_SETWIDTH, (char *) 78); #ifndef CANNA_MULE jrKanjiControl (0, KC_INHIBITHANKAKUKANA, (char *) 1);