Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NlRkL-0003Lh-F3 for qemu-devel@nongnu.org; Sat, 27 Feb 2010 13:50:37 -0500 Received: from [199.232.76.173] (port=51357 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NlRkL-0003LP-1G for qemu-devel@nongnu.org; Sat, 27 Feb 2010 13:50:37 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NlRkJ-0000EU-DL for qemu-devel@nongnu.org; Sat, 27 Feb 2010 13:50:36 -0500 Received: from hall.aurel32.net ([88.191.82.174]:58696) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NlRkJ-0000E8-17 for qemu-devel@nongnu.org; Sat, 27 Feb 2010 13:50:35 -0500 Date: Sat, 27 Feb 2010 19:50:29 +0100 From: Aurelien Jarno Subject: Re: [Qemu-devel] [FOR 0.12 PATCH] fix undefined shifts by >32 Message-ID: <20100227185029.GI10291@volta.aurel32.net> References: <1264673094-18238-1-git-send-email-pbonzini@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <1264673094-18238-1-git-send-email-pbonzini@redhat.com> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: qemu-devel@nongnu.org I have actually cherry-picked the commit from HEAD. On Thu, Jan 28, 2010 at 11:04:54AM +0100, Paolo Bonzini wrote: > Signed-off-by: Paolo Bonzini > --- > vl.c | 4 ++-- > 1 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/vl.c b/vl.c > index 5e8c775..d9f1ccb 100644 > --- a/vl.c > +++ b/vl.c > @@ -2373,9 +2373,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 > > > > > -- Aurelien Jarno GPG: 1024D/F1BCDB73 aurelien@aurel32.net http://www.aurel32.net