X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=include%2Fsys%2Fsysmacros.h;h=2285271fbbbe8d95903cc62318fe95505c76c01a;hb=3b5e69052a867e9d99cf4c655d775bd06e3437f1;hp=65ab60cd8456fe4cfbaeaa6dd1fb49c8789304a2;hpb=57d5fff5f7dd9af27152c84ce041c18597a22766;p=musl 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