Skip to content
Snippets Groups Projects
Commit f79ae654 authored by Yorhel's avatar Yorhel
Browse files

Fix compilation on 32bit systems

Broken in 7d290595
parent e42db579
No related branches found
No related tags found
No related merge requests found
...@@ -234,7 +234,7 @@ const Row = struct { ...@@ -234,7 +234,7 @@ const Row = struct {
var i: u32 = 0; var i: u32 = 0;
self.bg.fg(.graph); self.bg.fg(.graph);
while (i < bar_size) : (i += 1) { 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) { ui.addstr(switch (main.config.graph_style) {
.hash => ([_][:0]const u8{ " ", " ", " ", " ", " ", " ", " ", " ", "#" })[frac], .hash => ([_][:0]const u8{ " ", " ", " ", " ", " ", " ", " ", " ", "#" })[frac],
.half => ([_][:0]const u8{ " ", " ", " ", " ", "▌", "▌", "▌", "▌", "█" })[frac], .half => ([_][:0]const u8{ " ", " ", " ", " ", "▌", "▌", "▌", "▌", "█" })[frac],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment