diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2013-02-27 15:49:38 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2013-02-27 15:49:38 +0100 |
commit | e3e321682cd1e9861ba7680e61ab6dadaf1e2e32 (patch) | |
tree | fa732ff8b879ea7224f533aeeb8d39651b00896f | |
parent | 5bce135e36800a34a273376d5ea1f052ed2d4212 (diff) | |
download | busybox-w32-e3e321682cd1e9861ba7680e61ab6dadaf1e2e32.tar.gz busybox-w32-e3e321682cd1e9861ba7680e61ab6dadaf1e2e32.tar.bz2 busybox-w32-e3e321682cd1e9861ba7680e61ab6dadaf1e2e32.zip |
Fix move_to_unaligned16
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | include/platform.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/platform.h b/include/platform.h index 128230658..f4deb30c0 100644 --- a/include/platform.h +++ b/include/platform.h | |||
@@ -228,7 +228,7 @@ typedef uint32_t bb__aliased_uint32_t FIX_ALIASING; | |||
228 | # define move_from_unaligned32(v, u32p) (memcpy(&(v), (u32p), 4)) | 228 | # define move_from_unaligned32(v, u32p) (memcpy(&(v), (u32p), 4)) |
229 | # define move_to_unaligned16(u16p, v) do { \ | 229 | # define move_to_unaligned16(u16p, v) do { \ |
230 | uint16_t __t = (v); \ | 230 | uint16_t __t = (v); \ |
231 | memcpy((u16p), &__t, 4); \ | 231 | memcpy((u16p), &__t, 2); \ |
232 | } while (0) | 232 | } while (0) |
233 | # define move_to_unaligned32(u32p, v) do { \ | 233 | # define move_to_unaligned32(u32p, v) do { \ |
234 | uint32_t __t = (v); \ | 234 | uint32_t __t = (v); \ |