diff options
| author | Isaac Freund <ifreund@ifreund.xyz> | 2020-08-13 13:47:14 +0200 |
|---|---|---|
| committer | Isaac Freund <ifreund@ifreund.xyz> | 2020-08-13 13:47:14 +0200 |
| commit | 340bfbd7f1b4b0e8d9bb9a5c0a14cc0b5da38e70 (patch) | |
| tree | 4e61f5e643a17257ae614ed35124b534f64d2139 | |
| parent | 7de2edb623bc5f4f13a591da7bbff7a47e1c6e58 (diff) | |
| download | river-340bfbd7f1b4b0e8d9bb9a5c0a14cc0b5da38e70.tar.gz river-340bfbd7f1b4b0e8d9bb9a5c0a14cc0b5da38e70.tar.xz | |
xwayland: fix signed to unsigned int casting error
| -rw-r--r-- | river/XwaylandView.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/river/XwaylandView.zig b/river/XwaylandView.zig index b104b7e..d8292a1 100644 --- a/river/XwaylandView.zig +++ b/river/XwaylandView.zig @@ -122,9 +122,9 @@ pub fn getConstraints(self: Self) View.Constraints { .max_height = std.math.maxInt(u32), }; return .{ - .min_width = std.math.max(@intCast(u32, hints.min_width), View.min_size), + .min_width = @intCast(u32, std.math.max(hints.min_width, View.min_size)), .max_width = if (hints.max_width > 0) @intCast(u32, hints.max_width) else std.math.maxInt(u32), - .min_height = std.math.max(@intCast(u32, hints.min_height), View.min_size), + .min_height = @intCast(u32, std.math.max(hints.min_height, View.min_size)), .max_height = if (hints.max_height > 0) @intCast(u32, hints.max_height) else std.math.maxInt(u32), }; } |
