diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 2004-06-28 14:37:00 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 2004-06-28 14:37:00 +0000 |
commit | 50469cfc2448e5a4f8d61e07d3806cdda9c389d7 (patch) | |
tree | 09019fcf7036552a2074acebed472163a1a50203 /sys/arch | |
parent | fbe977f1e71e65830babd83278641a3417ea6b61 (diff) |
do not cast explicitly to unsigned; found by otto@
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/hppa/include/param.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sys/arch/hppa/include/param.h b/sys/arch/hppa/include/param.h index 4562f474b58..af7750571d0 100644 --- a/sys/arch/hppa/include/param.h +++ b/sys/arch/hppa/include/param.h @@ -1,4 +1,4 @@ -/* $OpenBSD: param.h,v 1.22 2004/04/19 22:55:49 deraadt Exp $ */ +/* $OpenBSD: param.h,v 1.23 2004/06/28 14:36:59 mickey Exp $ */ /* * Copyright (c) 1988-1994, The University of Utah and @@ -93,15 +93,15 @@ #define NKMEMPAGES_MAX_DEFAULT ((64 * 1024 * 1024) >> PAGE_SHIFT) /* pages ("clicks") (4096 bytes) to disk blocks */ -#define ctod(x) ((x)<<(PGSHIFT-DEV_BSHIFT)) -#define dtoc(x) ((x)>>(PGSHIFT-DEV_BSHIFT)) +#define ctod(x) ((x) << (PGSHIFT - DEV_BSHIFT)) +#define dtoc(x) ((x) >> (PGSHIFT - DEV_BSHIFT)) /* pages to bytes */ -#define ctob(x) ((x)<<PGSHIFT) -#define btoc(x) (((unsigned)(x)+(NBPG-1))>>PGSHIFT) +#define ctob(x) ((x) << PGSHIFT) +#define btoc(x) (((x) + PGOFSET) >> PGSHIFT) -#define btodb(bytes) ((unsigned)(bytes) >> DEV_BSHIFT) -#define dbtob(db) ((unsigned)(db) << DEV_BSHIFT) +#define btodb(x) ((x) >> DEV_BSHIFT) +#define dbtob(x) ((x) << DEV_BSHIFT) /* * Map a ``block device block'' to a file system block. |