diff options
author | Andreas Schwab <schwab@suse.de> | 2001-07-15 15:18:22 +0000 |
---|---|---|
committer | Andreas Schwab <schwab@suse.de> | 2001-07-15 15:18:22 +0000 |
commit | f7ccf2fcaf619c7ff1c0b133bdc47449c1345a15 (patch) | |
tree | 641f5ba67735bb8e4f34d2ebfa7509192b71042e | |
parent | 567f6a473aaf3fd0a21687e9f35d183c50023e0f (diff) | |
download | glibc-f7ccf2fcaf619c7ff1c0b133bdc47449c1345a15.tar.gz glibc-f7ccf2fcaf619c7ff1c0b133bdc47449c1345a15.tar.xz glibc-f7ccf2fcaf619c7ff1c0b133bdc47449c1345a15.zip |
(put16) [!_STRING_ARCH_unaligned && BIG_ENDIAN]: Fix index.
-rw-r--r-- | iconv/loop.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/iconv/loop.c b/iconv/loop.c index 3e40845f38..ae83894dc9 100644 --- a/iconv/loop.c +++ b/iconv/loop.c @@ -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); \ |