Date: Tue, 19 Mar 2002 01:24:40 -0800 (PST) From: Peter Wemm <peter@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 7924 for review Message-ID: <200203190924.g2J9Oeg79020@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200203190924.g2J9Oeg79020>