projects
/
oweals
/
musl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
997ba92
)
sysmacros major/minor: result should have type unsigned int, not dev_t
author
Rich Felker
<dalias@aerifal.cx>
Sat, 8 Sep 2012 06:42:27 +0000
(
02:42
-0400)
committer
Rich Felker
<dalias@aerifal.cx>
Sat, 8 Sep 2012 06:42:27 +0000
(
02:42
-0400)
include/sys/sysmacros.h
patch
|
blob
|
history
diff --git
a/include/sys/sysmacros.h
b/include/sys/sysmacros.h
index 65ab60cd8456fe4cfbaeaa6dd1fb49c8789304a2..2285271fbbbe8d95903cc62318fe95505c76c01a 100644
(file)
--- 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