This is the mail archive of the libc-hacker@sources.redhat.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

iconv/loop.c


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]