Fix build with zig 0.10.0-dev.1946+6f4343b61

I wasn't planning on (publicly) keeping up with Zig master before the
next release, but it's looking like 0.10 will mainly focus on the new
stage2 compiler and there might not be any significant language/stdlib
changes. If that's the case, might as well pull in this little change in
order to increase chances of ncdu working out of the box when 0.10 is
out.
This commit is contained in:
Yorhel 2022-03-30 12:56:07 +02:00
parent 0fc14173f2
commit bb98939e24

View file

@ -215,7 +215,7 @@ const Row = struct {
ui.addch('[');
if (main.config.show_percent) {
self.bg.fg(.num);
ui.addprint("{d:>5.1}", .{ 100*
ui.addprint("{d:>5.1}", .{ 100 *
if (main.config.show_blocks) @intToFloat(f32, item.blocks) / @intToFloat(f32, std.math.max(1, dir_parent.entry.blocks))
else @intToFloat(f32, item.size) / @intToFloat(f32, std.math.max(1, dir_parent.entry.size))
});