From 0dfbd514460045e3af1ed6805ab97ffedbbd1ab2 Mon Sep 17 00:00:00 2001 From: Paolo Bonzini Date: Thu, 4 Feb 2010 14:31:50 +0100 Subject: [PATCH] fix undefined shifts by >32 This one is for 0.12 too. Signed-off-by: Paolo Bonzini Signed-off-by: Blue Swirl --- vl.c | 4 ++-- 1 file 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;