Received: from eggs.gnu.org ([208.118.235.92]:52785) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TV6p8-0004a8-Rr for qemu-devel@nongnu.org; Sun, 04 Nov 2012 15:29:39 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TV6p7-00069v-QS for qemu-devel@nongnu.org; Sun, 04 Nov 2012 15:29:38 -0500 From: Stefan Weil Date: Sun, 4 Nov 2012 21:29:35 +0100 Message-Id: <1352060975-18646-1-git-send-email-sw@weilnetz.de> Subject: [Qemu-devel] [PATCH] target-mips: Fix compiler warnings caused by very large constants List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-trivial@nongnu.org Cc: Stefan Weil , qemu-devel@nongnu.org, Aurelien Jarno Those constants are larger than 32 bits and need a suffix to avoid warnings from some versions of gcc. Signed-off-by: Stefan Weil --- target-mips/dsp_helper.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/target-mips/dsp_helper.c b/target-mips/dsp_helper.c index b59133e..2ab9956 100644 --- a/target-mips/dsp_helper.c +++ b/target-mips/dsp_helper.c @@ -3553,7 +3553,7 @@ target_ulong helper_dextr_rs_w(target_ulong ac, target_ulong shift, if (temp128 == 0) { temp[0] = 0x0FFFFFFFF; } else { - temp[0] = 0x0100000000; + temp[0] = 0x0100000000ULL; } set_DSPControl_overflow_flag(1, 23, env); } @@ -3653,7 +3653,7 @@ target_ulong helper_extr_s_h(target_ulong ac, target_ulong shift, if (temp > (int64_t)0x7FFF) { temp = 0x00007FFF; set_DSPControl_overflow_flag(1, 23, env); - } else if (temp < (int64_t)0xFFFFFFFFFFFF8000) { + } else if (temp < (int64_t)0xFFFFFFFFFFFF8000LL) { temp = 0xFFFF8000; set_DSPControl_overflow_flag(1, 23, env); } -- 1.7.10.4