about summary refs log tree commit diff
path: root/include/sys/sysmacros.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/sys/sysmacros.h')
-rw-r--r--include/sys/sysmacros.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/sys/sysmacros.h b/include/sys/sysmacros.h
index d6c6aef6..07a3ef18 100644
--- a/include/sys/sysmacros.h
+++ b/include/sys/sysmacros.h
@@ -2,7 +2,7 @@
 #define _SYS_SYSMACROS_H
 
 #define major(x) \
-	((unsigned)( (((x)>>32) & 0xfffff000) | (((x)>>8) & 0x00000fff) ))
+	((unsigned)( (((x)>>31>>1) & 0xfffff000) | (((x)>>8) & 0x00000fff) ))
 #define minor(x) \
 	((unsigned)( (((x)>>12) & 0xffffff00) | ((x) & 0x000000ff) ))