summaryrefslogtreecommitdiff
path: root/linux-user
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2003-08-11 20:35:58 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2003-08-11 20:35:58 +0000
commit9dfa5b421dcb7f213163d2bd80549d6ca4bc74a6 (patch)
tree85c52985df5c899b9cf3c6595519e4e3439351cc /linux-user
parent9da8ba18e60273b9925991712883e54c16d4b626 (diff)
downloadqemu-9dfa5b421dcb7f213163d2bd80549d6ca4bc74a6.tar.gz
qemu-9dfa5b421dcb7f213163d2bd80549d6ca4bc74a6.tar.bz2
qemu-9dfa5b421dcb7f213163d2bd80549d6ca4bc74a6.zip
64 bit fixes (Falk Hueffner)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@365 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'linux-user')
-rw-r--r--linux-user/signal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux-user/signal.c b/linux-user/signal.c
index 46abf53d89..0d2e301878 100644
--- a/linux-user/signal.c
+++ b/linux-user/signal.c
@@ -152,7 +152,7 @@ void target_to_host_sigset(sigset_t *d, const target_sigset_t *s)
((unsigned long *)d)[i] = tswapl(s->sig[i]);
}
#elif TARGET_LONG_BITS == 32 && HOST_LONG_BITS == 64 && TARGET_NSIG_WORDS == 2
- ((unsigned long *)d)[0] = sigmask | (tswapl(s->sig[1]) << 32);
+ ((unsigned long *)d)[0] = sigmask | ((unsigned long)tswapl(s->sig[1]) << 32);
#else
#error target_to_host_sigset
#endif /* TARGET_LONG_BITS */