← Commit list

69f2e2cde

Denys Vlasenko
Denys Vlasenko
2009-10-20
FAILED Duration: 27s

Subject

mkfs_ext2: small tweak

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

util-linux/mkfs_ext2.c+3 -2
@@ -75,10 +75,11 @@ static unsigned int_log2(unsigned arg)
}
// taken from mkfs_minix.c. libbb candidate?
-static unsigned div_roundup(uint64_t size, uint32_t n)
+// why "uint64_t size"? we never use it for anything >32 bits
+static uint32_t div_roundup(uint64_t size, uint32_t n)
{
// Overflow-resistant
- uint64_t res = size / n;
+ uint32_t res = size / n;
if (res * n != size)
res++;
return res;