From: Rich Felker Date: Sat, 8 Sep 2012 06:42:27 +0000 (-0400) Subject: sysmacros major/minor: result should have type unsigned int, not dev_t X-Git-Tag: v0.9.5~37 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=b7afd7a7ec95fdc98dd31078891a9563d6f4ac73;p=oweals%2Fmusl.git sysmacros major/minor: result should have type unsigned int, not dev_t --- 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