projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5bce135
)
Fix move_to_unaligned16
author
Denys Vlasenko
<vda.linux@googlemail.com>
Wed, 27 Feb 2013 14:49:38 +0000
(15:49 +0100)
committer
Denys Vlasenko
<vda.linux@googlemail.com>
Wed, 27 Feb 2013 14:49:38 +0000
(15:49 +0100)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
include/platform.h
patch
|
blob
|
history
diff --git
a/include/platform.h
b/include/platform.h
index 12823065815662cf52f1f48737ba5666f2633f2d..f4deb30c0f5764b4a434365bec526e062b7370f3 100644
(file)
--- a/
include/platform.h
+++ b/
include/platform.h
@@
-228,7
+228,7
@@
typedef uint32_t bb__aliased_uint32_t FIX_ALIASING;
# define move_from_unaligned32(v, u32p) (memcpy(&(v), (u32p), 4))
# define move_to_unaligned16(u16p, v) do { \
uint16_t __t = (v); \
- memcpy((u16p), &__t,
4
); \
+ memcpy((u16p), &__t,
2
); \
} while (0)
# define move_to_unaligned32(u32p, v) do { \
uint32_t __t = (v); \