mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-27 03:33:33 +08:00
(put16) [!_STRING_ARCH_unaligned && BIG_ENDIAN]: Fix index.
This commit is contained in:
parent
567f6a473a
commit
f7ccf2fcaf
@ -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); \
|
||||
|
Loading…
Reference in New Issue
Block a user