projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bba831e
)
Avoid implicit truncation compiler warnings
author
Paul Brook
<paul@codesourcery.com>
Tue, 19 May 2009 14:42:39 +0000
(15:42 +0100)
committer
Paul Brook
<paul@codesourcery.com>
Tue, 19 May 2009 14:42:39 +0000
(15:42 +0100)
Signed-off-by: Paul Brook <paul@codesourcery.com>
linux-user/qemu.h
patch
|
blob
|
history
diff --git
a/linux-user/qemu.h
b/linux-user/qemu.h
index 447caf96827f373f2302d525c684d2320bed1480..9454e668fbb8ff8315998d48cd29c492242a93f3 100644
(file)
--- a/
linux-user/qemu.h
+++ b/
linux-user/qemu.h
@@
-262,10
+262,10
@@
static inline int access_ok(int type, abi_ulong addr, abi_ulong size)
*(uint8_t *)(hptr) = (uint8_t)(typeof(*hptr))(x);\
break;\
case 2:\
- *(uint16_t *)(hptr) = tswap16((typeof(*hptr))(x));\
+ *(uint16_t *)(hptr) = tswap16((
uint16_t)(
typeof(*hptr))(x));\
break;\
case 4:\
- *(uint32_t *)(hptr) = tswap32((typeof(*hptr))(x));\
+ *(uint32_t *)(hptr) = tswap32((
uint32_t)(
typeof(*hptr))(x));\
break;\
case 8:\
*(uint64_t *)(hptr) = tswap64((typeof(*hptr))(x));\