diff options
author | Paul Brook <paul@codesourcery.com> | 2009-05-19 15:42:39 +0100 |
---|---|---|
committer | Paul Brook <paul@codesourcery.com> | 2009-05-19 15:42:39 +0100 |
commit | 425be425f65771d9e45e5ea889b997e003afb705 (patch) | |
tree | 4776fde71d248de9840cc7a4c659180e401464eb /linux-user/qemu.h | |
parent | bba831e80fd15f439ac694950759032a8c71793b (diff) | |
download | hqemu-425be425f65771d9e45e5ea889b997e003afb705.zip hqemu-425be425f65771d9e45e5ea889b997e003afb705.tar.gz |
Avoid implicit truncation compiler warnings
Signed-off-by: Paul Brook <paul@codesourcery.com>
Diffstat (limited to 'linux-user/qemu.h')
-rw-r--r-- | linux-user/qemu.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/linux-user/qemu.h b/linux-user/qemu.h index 447caf9..9454e66 100644 --- 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));\ |