diff options
author | Thomas E. Dickey <dickey@invisible-island.net> | 2010-06-18 00:48:31 -0400 |
---|---|---|
committer | Thomas E. Dickey <dickey@invisible-island.net> | 2010-06-18 00:48:31 -0400 |
commit | 511bc0c05c0d5674e5d41490969e11ef5c79de8b (patch) | |
tree | 79fbb7dfd99e3f2ed25894d66f0da0239b0f5427 /src/chrtrans/makeuctb.c | |
parent | 310e655e2b1279d6c088497214e78e99e3fd6f74 (diff) | |
download | lynx-snapshots-511bc0c05c0d5674e5d41490969e11ef5c79de8b.tar.gz |
snapshot of project "lynx", label v2-8-8dev_3e
Diffstat (limited to 'src/chrtrans/makeuctb.c')
-rw-r--r-- | src/chrtrans/makeuctb.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/chrtrans/makeuctb.c b/src/chrtrans/makeuctb.c index e3db8a51..916e32fa 100644 --- a/src/chrtrans/makeuctb.c +++ b/src/chrtrans/makeuctb.c @@ -1,5 +1,5 @@ /* - * $LynxId: makeuctb.c,v 1.43 2010/05/03 00:45:10 tom Exp $ + * $LynxId: makeuctb.c,v 1.44 2010/06/17 08:06:46 tom Exp $ * * makeuctb.c, derived from conmakehash.c - kw * @@ -194,7 +194,7 @@ static void addpair_str(char *str, int un) MAX_UNIPAIRS); done(EX_DATAERR); } - themap_str.entries[themap_str.entry_ct].unicode = un; + themap_str.entries[themap_str.entry_ct].unicode = (u16) un; themap_str.entries[themap_str.entry_ct].replace_str = str; themap_str.entry_ct++; } @@ -238,7 +238,7 @@ static void addpair(int fp, int un) fprintf(stderr, "ERROR: Only 255 unicodes/glyph permitted!\n"); done(EX_DATAERR); } - unitable[fp][unicount[fp]] = un; + unitable[fp][unicount[fp]] = (u16) un; unicount[fp]++; } /* otherwise: ignore */ @@ -751,7 +751,7 @@ int main(int argc, char **argv) } } for (p = this_MIMEcharset; *p; p++) { - *p = TOLOWER(*p); + *p = (char) TOLOWER(*p); } if (argc > 4) { strncpy(this_LYNXcharset, argv[4], UC_MAXLEN_LYNXCSNAME); @@ -771,7 +771,7 @@ int main(int argc, char **argv) for (i = 0, p = this_MIMEcharset; *p && (i < UC_MAXLEN_ID_APPEND - 1); p++, i++) { - id_append[i + 1] = isalnum(UCH(*p)) ? *p : '_'; + id_append[i + 1] = (char) (isalnum(UCH(*p)) ? *p : '_'); } id_append[i + 1] = '\0'; } |