diff options
Diffstat (limited to 'include/sys/sysmacros.h')
-rw-r--r-- | include/sys/sysmacros.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/sys/sysmacros.h b/include/sys/sysmacros.h index 65ab60cd..2285271f 100644 --- a/include/sys/sysmacros.h +++ b/include/sys/sysmacros.h @@ -1,8 +1,8 @@ #ifndef _SYS_SYSMACROS_H #define _SYS_SYSMACROS_H -#define major(x) (((x) >> 8) & 0xff) -#define minor(x) ((x) & 0xff) +#define major(x) ((unsigned)((x) >> 8) & 0xff) +#define minor(x) ((unsigned)(x) & 0xff) #define makedev(x,y) (((x)<<8)|((y)&0xff)) #endif |