fix: sprinkle @intCast to fix 32 bit arm builds
This commit is contained in:
parent
1f6bc86265
commit
2a735cee5c
6 changed files with 7 additions and 7 deletions
|
@ -97,7 +97,7 @@ pub fn restore_state(palette: *Type) !void {
|
|||
};
|
||||
defer file.close();
|
||||
const stat = try file.stat();
|
||||
var buffer = try a.alloc(u8, stat.size);
|
||||
var buffer = try a.alloc(u8, @intCast(stat.size));
|
||||
defer a.free(buffer);
|
||||
const size = try file.readAll(buffer);
|
||||
const data = buffer[0..size];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue