mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-04 12:28:58 +00:00
Oops, uoff_t can't be used here yet.
This commit is contained in:
parent
2b8a366cf8
commit
7cac38703b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=36996
@ -34,7 +34,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: @(#)param.h 5.8 (Berkeley) 6/28/91
|
||||
* $Id: param.h,v 1.42 1998/01/24 02:01:09 dyson Exp $
|
||||
* $Id: param.h,v 1.43 1998/06/14 15:21:27 bde Exp $
|
||||
*/
|
||||
|
||||
#ifndef _MACHINE_PARAM_H_
|
||||
@ -118,7 +118,7 @@
|
||||
*/
|
||||
#define btodb(bytes) /* calculates (bytes / DEV_BSIZE) */ \
|
||||
(sizeof (bytes) > sizeof(long) \
|
||||
? (daddr_t)((uoff_t)(bytes) >> DEV_BSHIFT) \
|
||||
? (daddr_t)((unsigned long long)(bytes) >> DEV_BSHIFT) \
|
||||
: (daddr_t)((unsigned long)(bytes) >> DEV_BSHIFT))
|
||||
|
||||
#define dbtob(db) /* calculates (db * DEV_BSIZE) */ \
|
||||
|
Loading…
Reference in New Issue
Block a user