From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14214 invoked by alias); 21 Feb 2004 14:13:36 -0000 Mailing-List: contact libc-hacker-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-hacker-owner@sources.redhat.com Received: (qmail 14197 invoked from network); 21 Feb 2004 14:13:36 -0000 Received: from unknown (HELO Cantor.suse.de) (195.135.220.2) by sources.redhat.com with SMTP; 21 Feb 2004 14:13:36 -0000 Received: from hermes.suse.de (Hermes.suse.de [195.135.221.8]) by Cantor.suse.de (Postfix) with ESMTP id B8F6F2167AC for ; Sat, 21 Feb 2004 15:13:35 +0100 (CET) Received: from aj by arthur.inka.de with local (Exim 4.22) id 1AuXss-0008Gy-C6 for libc-hacker@sources.redhat.com; Sat, 21 Feb 2004 15:13:34 +0100 To: Glibc hackers Subject: One more gconv_simple lcast patch From: Andreas Jaeger Date: Sat, 21 Feb 2004 14:13:00 -0000 Message-ID: User-Agent: Gnus/5.1006 (Gnus v5.10.6) XEmacs/21.4 (Rational FORTRAN, linux) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-SW-Source: 2004-02/txt/msg00043.txt.bz2 --=-=-= Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Content-length: 1186 I missed this in my last patch set. Ok to commit? Andreas 2004-02-21 Andreas Jaeger * iconv/gconv_simple.c (internal_ucs4le_loop): Remove cast used as lvalue. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Index: iconv/gconv_simple.c --- iconv/gconv_simple.c 7 Feb 2004 16:27:50 -0000 1.61 +++ iconv/gconv_simple.c 21 Feb 2004 14:13:06 -0000 @@ -453,9 +453,11 @@ internal_ucs4le_loop (struct __gconv_ste #if __BYTE_ORDER =3D=3D __BIG_ENDIAN /* Sigh, we have to do some real work. */ size_t cnt; + uint32_t *outptr32 =3D (uint32_t *) outptr; =20 for (cnt =3D 0; cnt < n_convert; ++cnt, inptr +=3D 4) - *((uint32_t *) outptr)++ =3D bswap_32 (*(const uint32_t *) inptr); + *outptr32++ =3D bswap_32 (*(const uint32_t *) inptr); + outptr =3D (unsigned char *) outptr32; =20 *inptrp =3D inptr; *outptrp =3D outptr; --=20 Andreas Jaeger, aj@suse.de, http://www.suse.de/~aj SuSE Linux AG, Maxfeldstr. 5, 90409 N=FCrnberg, Germany GPG fingerprint =3D 93A3 365E CE47 B889 DF7F FED1 389A 563C C272 A126 --=-=-= Content-Type: application/pgp-signature Content-length: 188 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (GNU/Linux) iD8DBQBAN2eOOJpWPMJyoSYRAlUjAJ9yJHV1YCBFvxnUkZPlJqduVFz3FACfS/nK NESB1XsrRD8Ya1sN5+brR18= =7XmP -----END PGP SIGNATURE----- --=-=-=--