From 8582a53a34b2d3fe811d29703eed7519efdf8f2e Mon Sep 17 00:00:00 2001 From: bellard Date: Sun, 11 Nov 2007 23:11:36 +0000 Subject: [PATCH] 64 bit cast for dirent64 git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3625 c046a42c-6fe2-441c-8c8c-71466251a162 --- linux-user/syscall.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 6e9052a..6c8f689 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -4360,8 +4360,8 @@ abi_long do_syscall(void *cpu_env, int num, abi_long arg1, if (reclen > len) break; de->d_reclen = tswap16(reclen); - tswap64s(&de->d_ino); - tswap64s(&de->d_off); + tswap64s((uint64_t *)&de->d_ino); + tswap64s((uint64_t *)&de->d_off); de = (struct dirent64 *)((char *)de + reclen); len -= reclen; } -- 2.7.4