about summary refs log tree commit diff
path: root/iconv/gconv_simple.c
diff options
context:
space:
mode:
authorAndreas Jaeger <aj@suse.de>2004-02-21 18:25:25 +0000
committerAndreas Jaeger <aj@suse.de>2004-02-21 18:25:25 +0000
commitcd5b5023342e2efbbe7819cbf15814defa965ba0 (patch)
tree1f63b83b6dd43ef644cde4dc74d79f6df8e07461 /iconv/gconv_simple.c
parentd7cc1c9fe36a1c29ddeda94042ffc2477afdc31d (diff)
downloadglibc-cd5b5023342e2efbbe7819cbf15814defa965ba0.tar.gz
glibc-cd5b5023342e2efbbe7819cbf15814defa965ba0.tar.xz
glibc-cd5b5023342e2efbbe7819cbf15814defa965ba0.zip
(internal_ucs4le_loop): Remove cast used as lvalue.
Diffstat (limited to 'iconv/gconv_simple.c')
-rw-r--r--iconv/gconv_simple.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/iconv/gconv_simple.c b/iconv/gconv_simple.c
index 238e3295aa..47f741e235 100644
--- a/iconv/gconv_simple.c
+++ b/iconv/gconv_simple.c
@@ -91,10 +91,10 @@ internal_ucs4_loop (struct __gconv_step *step,
 
   for (cnt = 0; cnt < n_convert; ++cnt, inptr += 4)
     *outptr32++ = bswap_32 (*(const uint32_t *) inptr);
-  outptr = (unsigned char *) outptr32;
+  outptr = 
 
   *inptrp = inptr;
-  *outptrp = outptr;
+  *outptrp = (unsigned char *) outptr32;
 #elif __BYTE_ORDER == __BIG_ENDIAN
   /* Simply copy the data.  */
   *inptrp = inptr + n_convert * 4;
@@ -453,9 +453,11 @@ internal_ucs4le_loop (struct __gconv_step *step,
 #if __BYTE_ORDER == __BIG_ENDIAN
   /* Sigh, we have to do some real work.  */
   size_t cnt;
+  uint32_t *outptr32 = (uint32_t *) outptr;
 
   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;