diff options
author | Karl Heuer <kwzh@gnu.org> | 1998-06-01 03:32:00 +0000 |
---|---|---|
committer | Karl Heuer <kwzh@gnu.org> | 1998-06-01 03:32:00 +0000 |
commit | c292461fc5f1b975be5b3f9767f492d19cf22fb0 (patch) | |
tree | ead7b8b647d0502f4b99ca1ba016e3809b22e117 /src/doprnt.c | |
parent | 6d4279ab93817ed9b3e6cbb169b201d900ca2f4a (diff) | |
download | emacs-c292461fc5f1b975be5b3f9767f492d19cf22fb0.tar.gz |
(doprnt1): Fix char signedness mismatches.
Diffstat (limited to 'src/doprnt.c')
-rw-r--r-- | src/doprnt.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/doprnt.c b/src/doprnt.c index 13e13ef6200..9afdd5ae856 100644 --- a/src/doprnt.c +++ b/src/doprnt.c @@ -108,7 +108,7 @@ doprnt1 (lispstrings, buffer, bufsize, format, format_end, nargs, args) char *big_buffer = 0; register int tem; - char *string; + unsigned char *string; char fixed_buffer[20]; /* Default buffer for small formatting. */ char *fmtcpy; int minlen; @@ -135,7 +135,7 @@ doprnt1 (lispstrings, buffer, bufsize, format, format_end, nargs, args) fmt++; /* Copy this one %-spec into fmtcpy. */ - string = fmtcpy; + string = (unsigned char *)fmtcpy; *string++ = '%'; while (1) { @@ -207,7 +207,7 @@ doprnt1 (lispstrings, buffer, bufsize, format, format_end, nargs, args) abort (); sprintf (sprintf_buffer, fmtcpy, args[cnt++]); /* Now copy into final output, truncating as nec. */ - string = sprintf_buffer; + string = (unsigned char *)sprintf_buffer; goto doit; case 'f': @@ -221,7 +221,7 @@ doprnt1 (lispstrings, buffer, bufsize, format, format_end, nargs, args) u.half[1] = args[cnt++]; sprintf (sprintf_buffer, fmtcpy, u.d); /* Now copy into final output, truncating as nec. */ - string = sprintf_buffer; + string = (unsigned char *)sprintf_buffer; goto doit; } @@ -234,13 +234,13 @@ doprnt1 (lispstrings, buffer, bufsize, format, format_end, nargs, args) minlen = atoi (&fmtcpy[1]); if (lispstrings) { - string = (char *) ((struct Lisp_String *)args[cnt])->data; + string = ((struct Lisp_String *)args[cnt])->data; tem = ((struct Lisp_String *)args[cnt])->size; cnt++; } else { - string = args[cnt++]; + string = (unsigned char *)args[cnt++]; tem = strlen (string); } width = strwidth (string, tem); |