One more gconv_simple lcast patch
Ulrich Drepper
drepper@redhat.com
Sat Feb 21 18:15:00 GMT 2004
Andreas Jaeger wrote:
> for (cnt = 0; cnt < n_convert; ++cnt, inptr += 4)
> - *((uint32_t *) outptr)++ = bswap_32 (*(const uint32_t *) inptr);
> + *outptr32++ = bswap_32 (*(const uint32_t *) inptr);
> + outptr = (unsigned char *) outptr32;
>
> *inptrp = inptr;
> *outptrp = outptr;
Why the second added line? Just do it in the assignment to *outptrp.
--
â§ Ulrich Drepper â§ Red Hat, Inc. â§ 444 Castro St â§ Mountain View, CA â
More information about the Libc-hacker
mailing list