--- /usr/include/x86_64-linux-gnu/bits/sysmacros.h 2022-07-06 23:23:23.000000000 +0000 +++ include/bits/sysmacros.h 2022-11-25 17:37:07.471320582 +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; \ }