mirror of
https://github.com/fairyglade/ly.git
synced 2026-05-06 07:10:36 +00:00
Fix 32-bit issues on Ly's side
Signed-off-by: AnErrupTion <anerruption@disroot.org>
This commit is contained in:
@@ -450,7 +450,7 @@ fn patchFile(allocator: std.mem.Allocator, io: std.Io, source_file: []const u8,
|
||||
|
||||
var buffer: [4096]u8 = undefined;
|
||||
var reader = file.reader(io, &buffer);
|
||||
var text = try reader.interface.readAlloc(allocator, stat.size);
|
||||
var text = try reader.interface.readAlloc(allocator, @intCast(stat.size));
|
||||
|
||||
var iterator = patch_map.iterator();
|
||||
while (iterator.next()) |kv| {
|
||||
|
||||
@@ -266,7 +266,7 @@ pub fn supportsUnicode() bool {
|
||||
}
|
||||
|
||||
pub fn timeAsString(io: std.Io, buf: [:0]u8, format: [:0]const u8) []u8 {
|
||||
const timer = std.Io.Timestamp.now(io, .real).toSeconds();
|
||||
const timer: isize = @intCast(std.Io.Timestamp.now(io, .real).toSeconds());
|
||||
const tm_info = time.localtime(&timer);
|
||||
const len = time.strftime(buf, buf.len, format, tm_info);
|
||||
|
||||
|
||||
@@ -11,14 +11,14 @@ const Cascade = @This();
|
||||
io: std.Io,
|
||||
instance: ?Widget = null,
|
||||
buffer: *TerminalBuffer,
|
||||
current_auth_fails: *usize,
|
||||
max_auth_fails: usize,
|
||||
current_auth_fails: *u64,
|
||||
max_auth_fails: u64,
|
||||
|
||||
pub fn init(
|
||||
io: std.Io,
|
||||
buffer: *TerminalBuffer,
|
||||
current_auth_fails: *usize,
|
||||
max_auth_fails: usize,
|
||||
current_auth_fails: *u64,
|
||||
max_auth_fails: u64,
|
||||
) Cascade {
|
||||
return .{
|
||||
.io = io,
|
||||
|
||||
@@ -310,7 +310,7 @@ allocator: Allocator,
|
||||
io: std.Io,
|
||||
terminal_buffer: *TerminalBuffer,
|
||||
dur_movie: DurFormat,
|
||||
frames: u64,
|
||||
frames: usize,
|
||||
frame_size: UVec2,
|
||||
start_pos: IVec2,
|
||||
full_color: bool,
|
||||
|
||||
Reference in New Issue
Block a user