Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/sys use explicit cast for RHS of shift operator since se...



details:   https://anonhg.NetBSD.org/src/rev/d13d734ba8e0
branches:  trunk
changeset: 777922:d13d734ba8e0
user:      christos <christos%NetBSD.org@localhost>
date:      Fri Mar 09 15:38:03 2012 +0000

description:
use explicit cast for RHS of shift operator since semantics change from
traditional c to ansi.

diffstat:

 sys/sys/gmon.h |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r dd15ec645d30 -r d13d734ba8e0 sys/sys/gmon.h
--- a/sys/sys/gmon.h    Fri Mar 09 15:35:28 2012 +0000
+++ b/sys/sys/gmon.h    Fri Mar 09 15:38:03 2012 +0000
@@ -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 @@
  */
 #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;



Home | Main Index | Thread Index | Old Index