Skip to content
Snippets Groups Projects
Commit d0cd3b8d authored by Fabrice Bellard's avatar Fabrice Bellard
Browse files

64 bit fix

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@84 c046a42c-6fe2-441c-8c8c-71466251a162
parent 9af9eaaa
No related branches found
No related tags found
No related merge requests found
......@@ -218,7 +218,7 @@ const argtype *thunk_convert(void *dst, const void *src,
case TYPE_LONG:
case TYPE_ULONG:
case TYPE_PTRVOID:
if (target_to_host) {
if (to_host) {
*(uint64_t *)dst = tswap32(*(uint32_t *)src);
} else {
*(uint32_t *)dst = tswap32(*(uint64_t *)src & 0xffffffff);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment