From patchwork Thu Feb 4 13:31:50 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [v2,RESEND,2/5] fix undefined shifts by >32 Date: Thu, 04 Feb 2010 03:31:50 -0000 From: Paolo Bonzini X-Patchwork-Id: 44483 Message-Id: <1265290313-31738-3-git-send-email-pbonzini@redhat.com> To: qemu-devel@nongnu.org This one is for 0.12 too. Signed-off-by: Paolo Bonzini --- vl.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/vl.c b/vl.c index 39833fc..ea9a95c 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;