--- /usr/include/x86_64-linux-gnu/bits/sysmacros.h 2020-04-14 19:26:04.000000000 +0000 +++ include/bits/sysmacros.h 2020-05-05 19:03:23.910980758 +0000 @@ -40,8 +40,8 @@ __SYSMACROS_DECLARE_MAJOR (DECL_TEMPL) \ { \ unsigned int __major; \ - __major = ((__dev & (__dev_t) 0x00000000000fff00u) >> 8); \ - __major |= ((__dev & (__dev_t) 0xfffff00000000000u) >> 32); \ + __major = ((__dev & (__dev_t) 0x00000000000fff00ul) >> 8); \ + __major |= ((__dev & (__dev_t) 0xfffff00000000000ul) >> 32); \ return __major; \ } @@ -52,8 +52,8 @@ __SYSMACROS_DECLARE_MINOR (DECL_TEMPL) \ { \ unsigned int __minor; \ - __minor = ((__dev & (__dev_t) 0x00000000000000ffu) >> 0); \ - __minor |= ((__dev & (__dev_t) 0x00000ffffff00000u) >> 12); \ + __minor = ((__dev & (__dev_t) 0x00000000000000fful) >> 0); \ + __minor |= ((__dev & (__dev_t) 0x00000ffffff00000ul) >> 12); \ return __minor; \ }