Received: from eggs.gnu.org ([2001:4830:134:3::10]:34078) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zh1bb-0007Dg-LN for qemu-devel@nongnu.org; Tue, 29 Sep 2015 16:34:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zh1bW-0006t9-Mg for qemu-devel@nongnu.org; Tue, 29 Sep 2015 16:34:31 -0400 Received: from mx1.redhat.com ([209.132.183.28]:57605) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zh1bW-0006t5-H6 for qemu-devel@nongnu.org; Tue, 29 Sep 2015 16:34:26 -0400 From: Eduardo Habkost Date: Tue, 29 Sep 2015 17:34:21 -0300 Message-Id: <1443558863-26132-1-git-send-email-ehabkost@redhat.com> Subject: [Qemu-devel] [PATCH 0/2] target-i386: Fix undefined behavior on bit shifts List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Paolo Bonzini , Richard Henderson This fixes two errors detected by clang: target-i386/cpu.c:1494:15: runtime error: left shift of 1 by 31 places cannot be represented in type 'int' target-i386/translate.c:2423:26: runtime error: left shift of negative value -8 Eduardo Habkost (2): target-i386: Use 1UL for bit shift target-i386: Don't left shift negative constant target-i386/cpu.c | 2 +- target-i386/translate.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) -- 2.1.0