path = xstrdup(aPath);
- max_size = i << 20; // MBytes to Bytes
+ max_size = static_cast<uint64_t>(i) << 20; // MBytes to Bytes
parseOptions(0);
if (i <= 0)
fatal("storeCossDirParse: invalid size value");
- const uint64_t size = i << 20; // MBytes to Bytes
+ const uint64_t size = static_cast<uint64_t>(i) << 20; // MBytes to Bytes
if (size == maxSize())
debugs(3, 1, "Cache COSS dir '" << path << "' size remains unchanged at " << i << " MB");
const int i = GetInteger();
if (i < 0)
fatal("negative Rock cache_dir size value");
- max_size = i << 20; // MBytes to Bytes
+ max_size = static_cast<uint64_t>(i) << 20; // MBytes to Bytes
}
/// check the results of the configuration; only level-0 debugging works here
if (i <= 0)
fatal("UFSSwapDir::parseSizeL1L2: invalid size value");
- const uint64_t size = i << 20; // MBytes to Bytes
+ const uint64_t size = static_cast<uint64_t>(i) << 20; // MBytes to Bytes
/* just reconfigure it */
if (reconfiguring) {