aboutsummaryrefslogtreecommitdiff
path: root/vl.c
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2010-02-04 14:31:50 +0100
committerBlue Swirl <blauwirbel@gmail.com>2010-02-05 18:13:04 +0000
commit0dfbd514460045e3af1ed6805ab97ffedbbd1ab2 (patch)
tree7f83153920df2aac42b6c2bd9facf9dbc883f13b /vl.c
parent117f8eb81dfdf51a0418fbf6d260cbb72bcd4a9d (diff)
fix undefined shifts by >32
This one is for 0.12 too. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'vl.c')
-rw-r--r--vl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/vl.c b/vl.c
index 39833fc3b3..ea9a95c65d 100644
--- a/vl.c
+++ b/vl.c
@@ -2380,9 +2380,9 @@ static void numa_add(const char *optarg)
fprintf(stderr,
"only 63 CPUs in NUMA mode supported.\n");
}
- value = (1 << (endvalue + 1)) - (1 << value);
+ value = (2ULL << endvalue) - (1ULL << value);
} else {
- value = 1 << value;
+ value = 1ULL << value;
}
}
node_cpumask[nodenr] = value;