diff --git a/libs/core/sdk.zig b/libs/core/sdk.zig index e3a02859..b8972b91 100644 --- a/libs/core/sdk.zig +++ b/libs/core/sdk.zig @@ -209,7 +209,7 @@ pub fn Sdk(comptime deps: anytype) type { if (app.res_dirs) |res_dirs| { for (res_dirs) |res| { const install_res = app.b.addInstallDirectory(.{ - .source_dir = res, + .source_dir = .{ .path = res }, .install_dir = app.getInstallStep().?.dest_dir, .install_subdir = std.fs.path.basename(res), .exclude_extensions = &.{}, diff --git a/libs/sysaudio/src/alsa.zig b/libs/sysaudio/src/alsa.zig index 8897f787..aab594e3 100644 --- a/libs/sysaudio/src/alsa.zig +++ b/libs/sysaudio/src/alsa.zig @@ -273,7 +273,7 @@ pub const Context = struct { var i: usize = 0; var evt: *inotify_event = undefined; while (i < buf.len) : (i += @sizeOf(inotify_event) + evt.len) { - evt = @as(*inotify_event, @ptrCast(@alignCast(4, buf[i..]))); + evt = @as(*inotify_event, @ptrCast(@alignCast(buf[i..]))); const evt_name = @as([*]u8, @ptrCast(buf[i..]))[@sizeOf(inotify_event) .. @sizeOf(inotify_event) + 8]; if (evt.mask & std.os.linux.IN.ISDIR != 0 or !std.mem.startsWith(u8, evt_name, "pcm"))