From: bellard Date: Mon, 7 Apr 2003 21:35:13 +0000 (+0000) Subject: 64 bit fix X-Git-Tag: v0.1.5~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d0cd3b8d84172d6a7a365e41806e37868067b2aa;p=thirdparty%2Fqemu.git 64 bit fix git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@84 c046a42c-6fe2-441c-8c8c-71466251a162 --- diff --git a/thunk.c b/thunk.c index c2fd44caeef..f28a976cd75 100644 --- a/thunk.c +++ b/thunk.c @@ -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);