diff --git a/src/apprt/gtk.zig b/src/apprt/gtk.zig index ccb4fc3f1..51ca0d910 100644 --- a/src/apprt/gtk.zig +++ b/src/apprt/gtk.zig @@ -1028,7 +1028,7 @@ pub const Surface = struct { ) callconv(.C) void { const self = userdataSelf(ud.?); self.cursor_pos = .{ - .x = @max(0, @floatCast(f32, x)), + .x = @max(@as(f32, 0), @floatCast(f32, x)), .y = @floatCast(f32, y), }; diff --git a/src/os/flatpak.zig b/src/os/flatpak.zig index bcb8486f5..0d72f2a3c 100644 --- a/src/os/flatpak.zig +++ b/src/os/flatpak.zig @@ -284,7 +284,7 @@ pub const FlatpakHostCommand = struct { // The params for our RPC call const params = c.g_variant_new( "(^ay^aay@a{uh}@a{ss}u)", - if (self.cwd) |cwd| cwd.ptr else g_cwd, + @as(*const anyopaque, if (self.cwd) |*cwd| cwd.ptr else g_cwd), args, c.g_variant_builder_end(fd_builder), c.g_variant_builder_end(env_builder),