Use (uint64_t)1 instead of 1l / 1ul

This commit is contained in:
Vitaliy Filippov
2022-04-16 01:48:14 +03:00
parent 1493823f9e
commit 842ba8b831
14 changed files with 26 additions and 26 deletions
+1 -1
View File
@@ -189,7 +189,7 @@ public:
uint64_t pool = cfg["pool"].uint64_value();
if (pool)
{
inode = (inode & ((1l << (64-POOL_ID_BITS)) - 1)) | (pool << (64-POOL_ID_BITS));
inode = (inode & (((uint64_t)1 << (64-POOL_ID_BITS)) - 1)) | (pool << (64-POOL_ID_BITS));
}
if (!(inode >> (64-POOL_ID_BITS)))
{