Module Name: src Committed By: christos Date: Fri Mar 9 15:38:03 UTC 2012
Modified Files: src/sys/sys: gmon.h Log Message: use explicit cast for RHS of shift operator since semantics change from traditional c to ansi. To generate a diff of this commit: cvs rdiff -u -r1.9 -r1.10 src/sys/sys/gmon.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/sys/gmon.h diff -u src/sys/sys/gmon.h:1.9 src/sys/sys/gmon.h:1.10 --- src/sys/sys/gmon.h:1.9 Wed Oct 4 10:22:58 2006 +++ src/sys/sys/gmon.h Fri Mar 9 10:38:03 2012 @@ -1,4 +1,4 @@ -/* $NetBSD: gmon.h,v 1.9 2006/10/04 14:22:58 christos Exp $ */ +/* $NetBSD: gmon.h,v 1.10 2012/03/09 15:38:03 christos Exp $ */ /*- * Copyright (c) 1982, 1986, 1992, 1993 @@ -96,7 +96,7 @@ struct gmonhdr { */ #define ARCDENSITY 2 #define MINARCS 50 -#define MAXARCS ((1 << (8 * sizeof(HISTCOUNTER))) - 2) +#define MAXARCS ((1 << (unsigned int)(8 * sizeof(HISTCOUNTER))) - 2) struct tostruct { u_long selfpc;