iconv/loop.c

Andreas Schwab schwab@suse.de
Sun Jul 15 08:21:00 GMT 2001


I have checked in this patch which should help sparc. :-)

2001-07-15  Andreas Schwab  <schwab@suse.de>

	* iconv/loop.c (put16) [!_STRING_ARCH_unaligned && BIG_ENDIAN]:
	Fix index.

Index: iconv/loop.c
===================================================================
RCS file: /cvs/glibc/libc/iconv/loop.c,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -a -u -r1.27 -r1.28
--- iconv/loop.c	2001/07/06 04:54:47	1.27
+++ iconv/loop.c	2001/07/15 15:18:22	1.28
@@ -111,7 +111,7 @@
 #  define put16(addr, val) \
      ({ uint16_t __val = (val);						      \
 	((unsigned char *) (addr))[1] = __val;				      \
-	((unsigned char *) (addr))[2] = __val >> 8;			      \
+	((unsigned char *) (addr))[0] = __val >> 8;			      \
 	(void) 0; })
 #  define put32(addr, val) \
      ({ uint32_t __val = (val);						      \

-- 
Andreas Schwab                                  "And now for something
SuSE Labs                                        completely different."
Andreas.Schwab@suse.de
SuSE GmbH, Schanzäckerstr. 10, D-90443 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5



More information about the Libc-hacker mailing list