X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=progs%2Fdump_entry.c;h=0f4e7c56cf066d9e2f14a886aeb21892ae6c4960;hp=6d6efc11f934e11884ddbadf3b8f7c72b981fae2;hb=0573f2d712e4b5cb2a02a3fe52d513843d536b34;hpb=8c3524de1122ce47b3fc6f89769e489cef5a640d diff --git a/progs/dump_entry.c b/progs/dump_entry.c index 6d6efc11..0f4e7c56 100644 --- a/progs/dump_entry.c +++ b/progs/dump_entry.c @@ -39,7 +39,7 @@ #include "termsort.c" /* this C file is generated */ #include /* so is this */ -MODULE_ID("$Id: dump_entry.c,v 1.98 2012/02/29 01:04:17 tom Exp $") +MODULE_ID("$Id: dump_entry.c,v 1.100 2012/06/09 21:44:40 tom Exp $") #define INDENT 8 #define DISCARD(string) string = ABSENT_STRING @@ -1187,7 +1187,7 @@ show_entry(void) */ if (outbuf.used != 0) { bool infodump = (outform != F_TERMCAP && outform != F_TCONVERR); - char delim = infodump ? ',' : ':'; + char delim = (char) (infodump ? ',' : ':'); int j; for (j = (int) outbuf.used - 1; j > 0; --j) { @@ -1195,11 +1195,11 @@ show_entry(void) if (ch == '\n') { ; } else if (isspace(UChar(ch))) { - outbuf.used = j; + outbuf.used = (size_t) j; } else if (!infodump && ch == '\\') { - outbuf.used = j; + outbuf.used = (size_t) j; } else if (ch == delim && (j == 0 || outbuf.text[j - 1] != '\\')) { - outbuf.used = (j + 1); + outbuf.used = (size_t) (j + 1); } else { break; }