Commit d0cd3b8d84172d6a7a365e41806e37868067b2aa

Authored by bellard
1 parent 9af9eaaa

64 bit fix


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@84 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 1 additions and 1 deletions
... ... @@ -218,7 +218,7 @@ const argtype *thunk_convert(void *dst, const void *src,
218 218 case TYPE_LONG:
219 219 case TYPE_ULONG:
220 220 case TYPE_PTRVOID:
221   - if (target_to_host) {
  221 + if (to_host) {
222 222 *(uint64_t *)dst = tswap32(*(uint32_t *)src);
223 223 } else {
224 224 *(uint32_t *)dst = tswap32(*(uint64_t *)src & 0xffffffff);
... ...