From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nd1oP-0006tX-Fw for qemu-devel@nongnu.org; Thu, 04 Feb 2010 08:32:01 -0500 Received: from [199.232.76.173] (port=39980 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nd1oO-0006sd-EY for qemu-devel@nongnu.org; Thu, 04 Feb 2010 08:32:00 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Nd1oM-00079D-Rj for qemu-devel@nongnu.org; Thu, 04 Feb 2010 08:32:00 -0500 Received: from mx1.redhat.com ([209.132.183.28]:28519) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Nd1oM-00078v-1E for qemu-devel@nongnu.org; Thu, 04 Feb 2010 08:31:58 -0500 Received: from int-mx08.intmail.prod.int.phx2.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o14DVvIp013184 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 4 Feb 2010 08:31:57 -0500 Received: from localhost.localdomain (vpn1-5-172.ams2.redhat.com [10.36.5.172]) by int-mx08.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o14DVs34014783 for ; Thu, 4 Feb 2010 08:31:56 -0500 From: Paolo Bonzini Date: Thu, 4 Feb 2010 14:31:50 +0100 Message-Id: <1265290313-31738-3-git-send-email-pbonzini@redhat.com> In-Reply-To: <1265290313-31738-1-git-send-email-pbonzini@redhat.com> References: <1265290313-31738-1-git-send-email-pbonzini@redhat.com> Subject: [Qemu-devel] [PATCH v2 RESEND 2/5] fix undefined shifts by >32 List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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; -- 1.6.6