build: update to Zig 0.11.0

This commit is contained in:
Isaac Freund
2023-10-16 16:18:36 +02:00
parent 7f30c655c7
commit 2e586c7061
54 changed files with 333 additions and 363 deletions

View File

@ -109,8 +109,8 @@ pub fn startLayoutDemand(self: *Self, views: u32) void {
self.layout.sendLayoutDemand(
views,
@intCast(u32, self.output.usable_box.width),
@intCast(u32, self.output.usable_box.height),
@intCast(self.output.usable_box.width),
@intCast(self.output.usable_box.height),
self.output.pending.tags,
self.output.inflight.layout_demand.?.serial,
);
@ -138,8 +138,8 @@ fn handleRequest(layout: *river.LayoutV3, request: river.LayoutV3.Request, self:
layout_demand.pushViewDimensions(
req.x,
req.y,
@intCast(u31, math.min(math.maxInt(u31), req.width)),
@intCast(u31, math.min(math.maxInt(u31), req.height)),
@min(math.maxInt(u31), req.width),
@min(math.maxInt(u31), req.height),
);
}
},