Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/vax/include Cast some args to unsigned long (used w...



details:   https://anonhg.NetBSD.org/src/rev/38c30d9f7973
branches:  trunk
changeset: 525928:38c30d9f7973
user:      ragge <ragge%NetBSD.org@localhost>
date:      Sun Apr 21 21:00:29 2002 +0000

description:
Cast some args to unsigned long (used with pointers).

diffstat:

 sys/arch/vax/include/param.h |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (20 lines):

diff -r d983b2aaddf2 -r 38c30d9f7973 sys/arch/vax/include/param.h
--- a/sys/arch/vax/include/param.h      Sun Apr 21 20:56:33 2002 +0000
+++ b/sys/arch/vax/include/param.h      Sun Apr 21 21:00:29 2002 +0000
@@ -1,4 +1,4 @@
-/*      $NetBSD: param.h,v 1.49 2002/03/24 19:08:17 jdolecek Exp $    */
+/*      $NetBSD: param.h,v 1.50 2002/04/21 21:00:29 ragge Exp $    */
 /*-
  * Copyright (c) 1990 The Regents of the University of California.
  * All rights reserved.
@@ -149,8 +149,8 @@
 #define        btop(x)         (((unsigned)(x)) >> PGSHIFT)
 
 /* bytes to disk blocks */
-#define        btodb(x)        ((x) >> DEV_BSHIFT)
-#define        dbtob(x)        ((x) << DEV_BSHIFT)
+#define        btodb(x)        ((unsigned long)(x) >> DEV_BSHIFT)
+#define        dbtob(x)        ((unsigned long)(x) << DEV_BSHIFT)
 
 /* MD conversion macros */
 #define        vax_btoc(x)     (((unsigned)(x) + VAX_PGOFSET) >> VAX_PGSHIFT)



Home | Main Index | Thread Index | Old Index