]> git.proxmox.com Git - qemu.git/commitdiff
64 bit fixes (Falk Hueffner)
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>
Mon, 11 Aug 2003 20:35:58 +0000 (20:35 +0000)
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>
Mon, 11 Aug 2003 20:35:58 +0000 (20:35 +0000)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@365 c046a42c-6fe2-441c-8c8c-71466251a162

linux-user/signal.c
vl.h

index 46abf53d894385a4a1b123ce56f2fd00e611552d..0d2e3018788f56f2fc871444f45afefa9f1521d7 100644 (file)
@@ -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 */
diff --git a/vl.h b/vl.h
index 669bd227e6c9e1eb3d3effa3d0c302b737190f54..531eabe02d2ec6fcc6b283f09d5db4e6841a8027 100644 (file)
--- a/vl.h
+++ b/vl.h
@@ -60,7 +60,7 @@ int bdrv_commit(BlockDriverState *bs);
 
 struct cow_header_v2 {
     uint32_t magic;
-    uint32_t  long version;
+    uint32_t version;
     char backing_file[1024];
     int32_t mtime;
     uint64_t size;