[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Reconciliation of libsnprintfv vs. autogen
From: |
Bruno Haible |
Subject: |
Re: Reconciliation of libsnprintfv vs. autogen |
Date: |
Sun, 25 Feb 2007 22:39:07 +0100 |
User-agent: |
KMail/1.5.4 |
Bruce Korb wrote:
> @@ -193,7 +197,7 @@ call_argtype_function (struct printf_inf
>
> else
> {
> - pinfo->spec = *(unsigned char *) pinfo->format;
> + pinfo->spec = (unsigned)*(pinfo->format);
> pinfo->extra = spec->user;
> pinfo->type = spec->type;
The cast is a no-op anyway. Since pinfo->format is of type 'const char *'
and pinfo->spec is of type 'char', both variants are equivalent to
pinfo->spec = * pinfo->format;
You need to case a 'char' to 'unsigned char' only
- when using them as array indices,
- when passing them to <ctype.h> functions,
- when comparing them to values obtained through getc() or fgetc().
Bruno
- Re: snprintfv for gnulib?, (continued)
- Re: snprintfv for gnulib?, Gary V. Vaughan, 2007/02/20
- Re: snprintfv for gnulib?, Daniel Jacobowitz, 2007/02/22
- Re: snprintfv for gnulib?, Gary V. Vaughan, 2007/02/22
- Re: snprintfv for gnulib?, Paolo Bonzini, 2007/02/28
- Re: snprintfv for gnulib?, Daniel Jacobowitz, 2007/02/23
- Re: snprintfv for gnulib?, Paolo Bonzini, 2007/02/23
- Re: snprintfv for gnulib?, Gary V. Vaughan, 2007/02/23
- Re: snprintfv for gnulib?, Bruce Korb, 2007/02/23
- Re: snprintfv for gnulib?, Bruno Haible, 2007/02/23
- Reconciliation of libsnprintfv vs. autogen, Bruce Korb, 2007/02/25
- Re: Reconciliation of libsnprintfv vs. autogen,
Bruno Haible <=
- Re: Reconciliation of libsnprintfv vs. autogen, Bruce Korb, 2007/02/25
- Re: Reconciliation of libsnprintfv vs. autogen, Larry Jones, 2007/02/25
- Re: Reconciliation of libsnprintfv vs. autogen, Bruce Korb, 2007/02/25
- Re: Reconciliation of libsnprintfv vs. autogen, Larry Jones, 2007/02/26
- Re: Reconciliation of libsnprintfv vs. autogen, Paul Eggert, 2007/02/26
- Re: Reconciliation of libsnprintfv vs. autogen, Daniel Jacobowitz, 2007/02/25
- Re: Reconciliation of libsnprintfv vs. autogen, Ralf Wildenhues, 2007/02/25
- Re: Reconciliation of libsnprintfv vs. autogen, Daniel Jacobowitz, 2007/02/26
- Re: Reconciliation of libsnprintfv vs. autogen, Bruce Korb, 2007/02/26
- Re: Reconciliation of libsnprintfv vs. autogen, Daniel Jacobowitz, 2007/02/26