From owner-p4-projects Tue Mar 19 1:24:46 2002 Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 0C5A437B400; Tue, 19 Mar 2002 01:24:42 -0800 (PST) Delivered-To: perforce@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id A848337B402 for ; Tue, 19 Mar 2002 01:24:40 -0800 (PST) Received: (from perforce@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g2J9Oeg79020 for perforce@freebsd.org; Tue, 19 Mar 2002 01:24:40 -0800 (PST) (envelope-from peter@freebsd.org) Date: Tue, 19 Mar 2002 01:24:40 -0800 (PST) Message-Id: <200203190924.g2J9Oeg79020@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: perforce set sender to peter@freebsd.org using -f From: Peter Wemm Subject: PERFORCE change 7924 for review To: Perforce Change Reviews Sender: owner-p4-projects@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG http://people.freebsd.org/~peter/p4db/chv.cgi?CH=7924 Change 7924 by peter@peter_overcee on 2002/03/19 01:24:35 "fix" a warning (with a sledge hammer). warning: left shift >= sizeof type I think this is a bogus warning, but I'm not sure. Affected files ... ... //depot/projects/ia64/sys/ia64/ia64/db_disasm.c#2 edit Differences ... ==== //depot/projects/ia64/sys/ia64/ia64/db_disasm.c#2 (text+ko) ==== @@ -737,11 +737,14 @@ ia64_print_I24(const char *name, u_int64_t ins, db_addr_t loc) { union ia64_instruction u; + u_int64_t i; u.ins = ins; + i = u.I24.s; + i = i << 43; + i |= u.I24.imm27a << 16; db_printf("%s pr.rot=%lx", name, - sign_extend(((u_int64_t) u.I24.s << 43) - | (u.I24.imm27a << 16), 44)); + sign_extend(i, 44)); } static void To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe p4-projects" in the body of the message