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 buffer: [4096]u8 = undefined;
|
||||||
var reader = file.reader(io, &buffer);
|
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();
|
var iterator = patch_map.iterator();
|
||||||
while (iterator.next()) |kv| {
|
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 {
|
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 tm_info = time.localtime(&timer);
|
||||||
const len = time.strftime(buf, buf.len, format, tm_info);
|
const len = time.strftime(buf, buf.len, format, tm_info);
|
||||||
|
|
||||||
|
|||||||
@@ -11,14 +11,14 @@ const Cascade = @This();
|
|||||||
io: std.Io,
|
io: std.Io,
|
||||||
instance: ?Widget = null,
|
instance: ?Widget = null,
|
||||||
buffer: *TerminalBuffer,
|
buffer: *TerminalBuffer,
|
||||||
current_auth_fails: *usize,
|
current_auth_fails: *u64,
|
||||||
max_auth_fails: usize,
|
max_auth_fails: u64,
|
||||||
|
|
||||||
pub fn init(
|
pub fn init(
|
||||||
io: std.Io,
|
io: std.Io,
|
||||||
buffer: *TerminalBuffer,
|
buffer: *TerminalBuffer,
|
||||||
current_auth_fails: *usize,
|
current_auth_fails: *u64,
|
||||||
max_auth_fails: usize,
|
max_auth_fails: u64,
|
||||||
) Cascade {
|
) Cascade {
|
||||||
return .{
|
return .{
|
||||||
.io = io,
|
.io = io,
|
||||||
|
|||||||
@@ -310,7 +310,7 @@ allocator: Allocator,
|
|||||||
io: std.Io,
|
io: std.Io,
|
||||||
terminal_buffer: *TerminalBuffer,
|
terminal_buffer: *TerminalBuffer,
|
||||||
dur_movie: DurFormat,
|
dur_movie: DurFormat,
|
||||||
frames: u64,
|
frames: usize,
|
||||||
frame_size: UVec2,
|
frame_size: UVec2,
|
||||||
start_pos: IVec2,
|
start_pos: IVec2,
|
||||||
full_color: bool,
|
full_color: bool,
|
||||||
|
|||||||
Reference in New Issue
Block a user