fix: sprinkle @intCast to fix 32 bit arm builds

This commit is contained in:
CJ van den Berg 2024-08-16 22:02:53 +02:00
parent 1f6bc86265
commit 2a735cee5c
6 changed files with 7 additions and 7 deletions

View file

@ -568,7 +568,7 @@ fn read_restore_info(self: *Self) !void {
const file = try std.fs.cwd().openFile(file_name, .{ .mode = .read_only });
defer file.close();
const stat = try file.stat();
var buf = try self.a.alloc(u8, stat.size);
var buf = try self.a.alloc(u8, @intCast(stat.size));
defer self.a.free(buf);
const size = try file.readAll(buf);
try editor.extract_state(buf[0..size]);