Fix compilation on 32bit systems

Broken in 7d2905952d
This commit is contained in:
Yorhel 2022-02-07 13:58:58 +01:00
parent e42db579a0
commit f79ae654f3

View file

@ -234,7 +234,7 @@ const Row = struct {
var i: u32 = 0;
self.bg.fg(.graph);
while (i < bar_size) : (i += 1) {
const frac = std.math.min(8, (num *| 8) / perblock);
const frac = std.math.min(@as(usize, 8), (num *| 8) / perblock);
ui.addstr(switch (main.config.graph_style) {
.hash => ([_][:0]const u8{ " ", " ", " ", " ", " ", " ", " ", " ", "#" })[frac],
.half => ([_][:0]const u8{ " ", " ", " ", " ", "", "", "", "", "" })[frac],