summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2022-02-07 13:58:58 +0100
committerYorhel <git@yorhel.nl>2022-02-07 13:59:22 +0100
commitf79ae654f389b02a153f0d4faf6ba2286217198c (patch)
treecc5a9836138debf44f632928980579ed4c3981f3
parente42db579a0e08bd74ae23fa50741bb97cd2a418e (diff)
Fix compilation on 32bit systems
Broken in 7d2905952d956801050baaed08eb092fb22f661f
-rw-r--r--src/browser.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/browser.zig b/src/browser.zig
index d3526ec..7078569 100644
--- a/src/browser.zig
+++ b/src/browser.zig
@@ -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],