From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40462) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WGZao-00008X-FD for qemu-devel@nongnu.org; Thu, 20 Feb 2014 14:47:35 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WGZaj-0004J8-ME for qemu-devel@nongnu.org; Thu, 20 Feb 2014 14:47:34 -0500 Received: from mnementh.archaic.org.uk ([2001:8b0:1d0::1]:46110) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WGZaj-0004J0-F4 for qemu-devel@nongnu.org; Thu, 20 Feb 2014 14:47:29 -0500 From: Peter Maydell Date: Thu, 20 Feb 2014 19:47:27 +0000 Message-Id: <1392925647-14649-1-git-send-email-peter.maydell@linaro.org> Subject: [Qemu-devel] [PATCH] target-ppc/translate.c: Use ULL suffix for 64 bit constants List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Tom Musta , Stefan Weil , qemu-ppc@nongnu.org, Alexander Graf , patches@linaro.org 64 bit constants need the "ULL" suffix, not just "UL", because on 32 bit platforms 'long' is not large enough and this will cause a compiler warning. Signed-off-by: Peter Maydell --- I think plain "UL" as a suffix is pretty much never right; it should either be "U" or "ULL". target-ppc/translate.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/target-ppc/translate.c b/target-ppc/translate.c index c5c1108..54013a2 100644 --- a/target-ppc/translate.c +++ b/target-ppc/translate.c @@ -7179,8 +7179,8 @@ static void gen_xxpermdi(DisasContext *ctx) #define OP_NABS 2 #define OP_NEG 3 #define OP_CPSGN 4 -#define SGN_MASK_DP 0x8000000000000000ul -#define SGN_MASK_SP 0x8000000080000000ul +#define SGN_MASK_DP 0x8000000000000000ull +#define SGN_MASK_SP 0x8000000080000000ull #define VSX_SCALAR_MOVE(name, op, sgn_mask) \ static void glue(gen_, name)(DisasContext * ctx) \ -- 1.8.5